mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08: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…
Reference in New Issue
Block a user