Commit 63fbdd35 authored by Bruce Momjian's avatar Bruce Momjian

Portability fix for pg_dumpall.

parent 11ac1bf2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment