Portability fix for pg_dumpall.

REL6_4
Bruce Momjian 29 years ago
parent 11ac1bf268
commit 63fbdd358f
  1. 10
      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

Loading…
Cancel
Save