]> granicus.if.org Git - postgresql/commit
Use a 'datallowconn' check for avoiding 'template0', rather than
authorBruce Momjian <bruce@momjian.us>
Tue, 18 May 2010 18:40:51 +0000 (18:40 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 18 May 2010 18:40:51 +0000 (18:40 +0000)
commit64719a18dbe36871635bbebd718a1267b9447bcd
tree756502796b7e036ff2c8a5daeaa4e53dd47c210b
parent60e7f45966b3a95c7e5c13ee783c96c0860c14f1
Use a 'datallowconn' check for avoiding 'template0', rather than
hardcoding a 'template0' check, per suggestion from Alvaro.

This might fix a problem where someone has allowed 'template0'
connections, but it is a cleaner approach even if doesn't fix the
bug.
contrib/pg_upgrade/pg_upgrade.c