Skip to content

Commit 63fbdd3

Browse files
committed
Portability fix for pg_dumpall.
1 parent 11ac1bf commit 63fbdd3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/bin/pg_dump/pg_dumpall

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ fi
1818
#
1919
# get the postgres user id
2020
#
21-
POSTGRES_SUPER_USER_ID="`psql -A -q -t template1 <<END
22-
select datdba
23-
from pg_database
24-
where datname = 'template1';
25-
END`"
21+
POSTGRES_SUPER_USER_ID="`echo \" \
22+
select datdba \
23+
from pg_database \
24+
where datname = 'template1'; \" | \
25+
psql -A -q -t template1`"
2626
echo "${BS}connect template1"
2727
#
2828
# delete all users in case they run this twice

0 commit comments

Comments
 (0)