Portability fix for pg_dumpall.
authorBruce Momjian
Wed, 20 Aug 1997 15:06:48 +0000 (15:06 +0000)
committerBruce Momjian
Wed, 20 Aug 1997 15:06:48 +0000 (15:06 +0000)
src/bin/pg_dump/pg_dumpall

index 976a05eebe1e6d5c14a91f7b1db6404cbd12fe13..0e3a1ef0ab2e22098afdc371a55bf0422e38e71b 100644 (file)
@@ -18,11 +18,11 @@ fi
 #
 # get the postgres user id
 #
-POSTGRES_SUPER_USER_ID="`psql -A -q -t template1 <
-select datdba
-from pg_database
-where datname = 'template1';
-END`"
+POSTGRES_SUPER_USER_ID="`echo \" \
+           select datdba \
+           from pg_database \
+           where datname = 'template1'; \" | \
+           psql -A -q -t template1`"
 echo "${BS}connect template1"
 #
 # delete all users in case they run this twice