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
|
# get the postgres user id
|
||||||
#
|
#
|
||||||
POSTGRES_SUPER_USER_ID="`psql -A -q -t template1 <<END
|
POSTGRES_SUPER_USER_ID="`echo \" \
|
||||||
select datdba
|
select datdba \
|
||||||
from pg_database
|
from pg_database \
|
||||||
where datname = 'template1';
|
where datname = 'template1'; \" | \
|
||||||
END`"
|
psql -A -q -t template1`"
|
||||||
echo "${BS}connect template1"
|
echo "${BS}connect template1"
|
||||||
#
|
#
|
||||||
# delete all users in case they run this twice
|
# delete all users in case they run this twice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user