projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b9904a
)
In pg_upgrade, test for datallowconn instead of hardcoding template0.
author
Bruce Momjian
<bruce@momjian.us>
Mon, 24 May 2010 19:52:33 +0000
(19:52 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Mon, 24 May 2010 19:52:33 +0000
(19:52 +0000)
contrib/pg_upgrade/info.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_upgrade/info.c
b/contrib/pg_upgrade/info.c
index 756e8ffd8598238dd86197b9f99b7aaa65c4b4d6..19a7b8bda8c00ffc02257ff18c832320534259aa 100644
(file)
--- a/
contrib/pg_upgrade/info.c
+++ b/
contrib/pg_upgrade/info.c
@@
-228,7
+228,7
@@
get_db_infos(migratorContext *ctx, DbInfoArr *dbinfs_arr, Cluster whichCluster)
"FROM pg_catalog.pg_database d "
" LEFT OUTER JOIN pg_catalog.pg_tablespace t "
" ON d.dattablespace = t.oid "
- "WHERE d.dat
name != 'template0'
");
+ "WHERE d.dat
allowconn = true
");
i_datname = PQfnumber(res, "datname");
i_oid = PQfnumber(res, "oid");