Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit233a52e

Browse files
committed
Fix pg_dumpall for new psql output.
1 parente1a1f22 commit233a52e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_dump/pg_dumpall

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ copy tmp_pg_shadow to stdout;
4747
drop table tmp_pg_shadow;
4848
END
4949
echo"${BS}."
50-
psql -l -A -q -t | grep '|' | tr '|' ' ' |\
50+
psql -A -q -t -c"select* from pg_database" template1 | grep '|' | tr '|' ' ' |\
5151
grep -v '^template1 ' |\
5252
while read DATABASE DBUSERID ENCODING DATAPATH
5353
do
5454
echo"${BS}connect template1$DBUSERID"
5555
5656
if pg_encoding$ENCODING >/dev/null 2>&1
5757
then
58-
echo"create database$DATABASE with encoding='$ENCODING';"
58+
echo"create database$DATABASE with encoding='`pg_encoding$ENCODING`';"
5959
else
6060
echo"create database$DATABASE;"
6161
fi

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp