Use a 'datallowconn' check for avoiding 'template0', rather than

Bruce Momjian <bruce@momjian.us>

Commit: 64719a18dbe36871635bbebd718a1267b9447bcd
Author: Bruce Momjian <bruce@momjian.us>
Date: 2010-05-18T18:40:51Z
Releases: 9.0.0
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.

Files

PathChange+/−
contrib/pg_upgrade/pg_upgrade.c modified +2 −3