Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8dd692c

Browse files
committed
Change 2>$1 to -o /dev/null instead...
From: Andreas Klemm <andreas@klemm.gtn.com>
1 parent 8d53465 commit 8dd692c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/bin/initdb/initdb.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828
# IDENTIFICATION
29-
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.38 1998/03/16 05:58:46 momjian Exp $
29+
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.39 1998/03/22 18:28:39 scrappy Exp $
3030
#
3131
#-------------------------------------------------------------------------
3232

@@ -348,8 +348,7 @@ echo
348348

349349
# If the COPY is first, the VACUUM generates an error, so we vacuum first
350350
echo "vacuuming template1"
351-
echo "vacuum" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
352-
grep -v "^DEBUG:"
351+
echo "vacuum" | postgres -o /dev/null -F -Q -D$PGDATA template1
353352

354353
echo "COPY pg_shadow TO '$PGDATA/pg_pwd' USING DELIMITERS '\\t'" |\
355354
postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
@@ -390,6 +389,4 @@ echo "REVOKE ALL on pg_shadow FROM public" |\
390389
echo "loading pg_description"
391390
echo "copy pg_description from '$TEMPLATE_DESCR'" | postgres -F -Q -D$PGDATA template1 > /dev/null
392391
echo "copy pg_description from '$GLOBAL_DESCR'" | postgres -F -Q -D$PGDATA template1 > /dev/null
393-
echo "vacuum analyze" | postgres -F -Q -D$PGDATA template1 2>&1 > /dev/null |\
394-
grep -v "^DEBUG:"
395-
392+
echo "vacuum analyze" | postgres -o /dev/null -F -Q -D$PGDATA template1

0 commit comments

Comments
 (0)