Fix problems with pg_upgrade found by Kardos, Dr. Andrea

This commit is contained in:
Bruce Momjian 2000-03-07 23:09:34 +00:00
parent 52d39d519a
commit 91124a2f66
1 changed files with 2 additions and 2 deletions

View File

@ -54,11 +54,11 @@ do
POSTGRES_USER="`echo \" \
select usename \
from pg_shadow \
where usesysid = $DBUSERID; \" | \
where usename = $DBUSERID; \" | \
psql -A -q -t template1`"
echo "${BS}connect template1 $POSTGRES_USER"
if createdb -help|grep encoding >/dev/null
if pg_encoding $ENCODING >/dev/null 2>&1
then
echo "create database $DATABASE with encoding='`pg_encoding $ENCODING`';"
else