1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-29 16:21:20 +03:00
Bruce Momjian 2a55e71343 pg_upgrade: only allow template0 to be non-connectable
This patch causes pg_upgrade to error out during its check phase if:

(1) template0 is marked connectable
or
(2) any other database is marked non-connectable

This is done because, in the first case, pg_upgrade would fail because
the pg_dumpall --globals restore would fail, and in the second case, the
database would not be restored, leading to data loss.

Report by Matt Landry (1), Stephen Frost (2)

Backpatch through 9.0
2015-05-16 00:10:03 -04:00
..
2014-12-17 11:59:45 +01:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2014-05-06 11:26:27 -04:00
2012-12-10 23:03:28 -05:00
2012-05-15 22:19:41 +03:00
2014-05-06 11:26:27 -04:00