From 8dd692c8e38e7236a61493f491492ecb85f1adf9 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sun, 22 Mar 1998 18:28:39 +0000 Subject: [PATCH] Change 2>$1 to -o /dev/null instead... From: Andreas Klemm --- src/bin/initdb/initdb.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index e205dd0d0f..7b9e78cdd4 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -26,7 +26,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.38 1998/03/16 05:58:46 momjian Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.39 1998/03/22 18:28:39 scrappy Exp $ # #------------------------------------------------------------------------- @@ -348,8 +348,7 @@ echo # If the COPY is first, the VACUUM generates an error, so we vacuum first echo "vacuuming template1" -echo "vacuum" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\ - grep -v "^DEBUG:" +echo "vacuum" | postgres -o /dev/null -F -Q -D$PGDATA template1 echo "COPY pg_shadow TO '$PGDATA/pg_pwd' USING DELIMITERS '\\t'" |\ postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\ @@ -390,6 +389,4 @@ echo "REVOKE ALL on pg_shadow FROM public" |\ echo "loading pg_description" echo "copy pg_description from '$TEMPLATE_DESCR'" | postgres -F -Q -D$PGDATA template1 > /dev/null echo "copy pg_description from '$GLOBAL_DESCR'" | postgres -F -Q -D$PGDATA template1 > /dev/null -echo "vacuum analyze" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\ - grep -v "^DEBUG:" - +echo "vacuum analyze" | postgres -o /dev/null -F -Q -D$PGDATA template1 -- GitLab