From 233a52eaff5b5e48512dba5ee7e681034473b621 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Wed, 22 Mar 2000 05:10:22 +0000 Subject: [PATCH] Fix pg_dumpall for new psql output. --- src/bin/pg_dump/pg_dumpall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/pg_dump/pg_dumpall b/src/bin/pg_dump/pg_dumpall index 586e75d530..377b296e85 100644 --- a/src/bin/pg_dump/pg_dumpall +++ b/src/bin/pg_dump/pg_dumpall @@ -47,7 +47,7 @@ copy tmp_pg_shadow to stdout; drop table tmp_pg_shadow; END echo "${BS}." -psql -l -A -q -t | grep '|' | tr '|' ' ' | \ +psql -A -q -t -c "select * from pg_database" template1 | grep '|' | tr '|' ' ' | \ grep -v '^template1 ' | \ while read DATABASE DBUSERID ENCODING DATAPATH do @@ -55,7 +55,7 @@ do if pg_encoding $ENCODING >/dev/null 2>&1 then - echo "create database $DATABASE with encoding='$ENCODING';" + echo "create database $DATABASE with encoding='`pg_encoding $ENCODING`';" else echo "create database $DATABASE;" fi