提交 91124a2f 编写于 作者: B Bruce Momjian

Fix problems with pg_upgrade found by Kardos, Dr. Andrea

上级 52d39d51
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册