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

From: momjian(at)postgresql(dot)org (Bruce Momjian)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use a 'datallowconn' check for avoiding 'template0', rather than
Date: 2010-05-18 18:40:52
Message-ID: 20100518184052.19D027541D2@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/contrib/pg_upgrade:
pg_upgrade.c (r1.2 -> r1.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/contrib/pg_upgrade/pg_upgrade.c?r1=1.2&r2=1.3)

Browse pgsql-committers by date

  From Date Subject
Next Message User Bmomjian 2010-05-18 18:42:55 pg-migrator - pg_migrator: Adjust test for non-connectable databases,
Previous Message Magnus Hagander 2010-05-18 15:41:36 pgsql: Make pg_upgrade documentation refer to 9.0 instead of 8.4.