OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52d39d5
)
Fix problems with pg_upgrade found by Kardos, Dr. Andrea
author
Bruce Momjian
<bruce@momjian.us>
Tue, 7 Mar 2000 23:09:34 +0000
(23:09 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Tue, 7 Mar 2000 23:09:34 +0000
(23:09 +0000)
src/bin/pg_dump/pg_dumpall
patch
|
blob
|
history
diff --git
a/src/bin/pg_dump/pg_dumpall
b/src/bin/pg_dump/pg_dumpall
index
c4424c9
..
1402b3f
100644
(file)
--- a/
src/bin/pg_dump/pg_dumpall
+++ b/
src/bin/pg_dump/pg_dumpall
@@
-54,11
+54,11
@@
do
POSTGRES_USER="`echo \" \
select usename \
from pg_shadow \
- where use
sysid
= $DBUSERID; \" | \
+ where use
name
= $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