pgsql: pg_upgrade: only allow template0 to be non-connectable

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема pgsql: pg_upgrade: only allow template0 to be non-connectable
Дата
Msg-id E1YtTQU-0000m1-6o@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-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_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2194aa92b7a65561c109875d8b904198c3cd0743

Modified Files
--------------
contrib/pg_upgrade/check.c |   54 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Avoid direct use of INFINITY.
Следующее
От: Bruce Momjian
Дата:
Сообщение: pgsql: pg_upgrade: only allow template0 to be non-connectable