mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
Portability fix for pg_dumpall.
This commit is contained in:
parent
11ac1bf268
commit
63fbdd358f
@ -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…
x
Reference in New Issue
Block a user