From: Bruce Momjian <bruce@momjian.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: pg_upgrade: only allow template0 to be non-connectable
Date: Sat, 16 May 2015 04:10:14 +0000
Message-ID: <E1YtTQU-0000lr-5t@gemulon.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
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
Branch
------
REL9_4_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/31f5d3f3544f76892febccb4c2840ada9e765597
Modified Files
--------------
contrib/pg_upgrade/check.c | 54 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: bruce@momjian.us
Subject: Re: pgsql: pg_upgrade: only allow template0 to be non-connectable
In-Reply-To: <E1YtTQU-0000lr-5t@gemulon.postgresql.org>
References: <E1YtTQU-0000lr-5t@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox