aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1997-08-20 15:06:48 +0000
committerBruce Momjian <bruce@momjian.us>1997-08-20 15:06:48 +0000
commit63fbdd358fa600cba80b03e4c407859ecccdbfda (patch)
tree2f41be4d5e68c53442df35a92ede71673b89d53c /src
parent11ac1bf268249b4efbe98bc32d456f4e6227a558 (diff)
downloadpostgresql-63fbdd358fa600cba80b03e4c407859ecccdbfda.tar.gz
postgresql-63fbdd358fa600cba80b03e4c407859ecccdbfda.zip
Portability fix for pg_dumpall.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dumpall10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_dump/pg_dumpall b/src/bin/pg_dump/pg_dumpall
index 976a05eebe1..0e3a1ef0ab2 100644
--- a/src/bin/pg_dump/pg_dumpall
+++ b/src/bin/pg_dump/pg_dumpall
@@ -18,11 +18,11 @@ fi
#
# get the postgres user id
#
-POSTGRES_SUPER_USER_ID="`psql -A -q -t template1 <<END
-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