pgsql: Fix pg_dumpall to work for databases flagged as read-only.

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема pgsql: Fix pg_dumpall to work for databases flagged as read-only.
Дата
Msg-id E1Vmqlx-0000lz-6S@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix pg_dumpall to work for databases flagged as read-only.

pg_dumpall's charter is to be able to recreate a database cluster's
contents in a virgin installation, but it was failing to honor that
contract if the cluster had any ALTER DATABASE SET
default_transaction_read_only settings.  By including a SET command
for the connection for each connection opened by pg_dumpall output,
errors are avoided and the source cluster is successfully
recreated.

There was discussion of whether to also set this for the connection
applying pg_dump output, but it was felt that it was both less
appropriate in that context, and far easier to work around.

Backpatch to all supported branches.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/52898e005f06b1529299b4b14510de3ab259a2f1

Modified Files
--------------
src/bin/pg_dump/pg_dumpall.c |   14 ++++++++++++++
1 file changed, 14 insertions(+)


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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: pgsql: Fix pg_dumpall to work for databases flagged as read-only.
Следующее
От: Kevin Grittner
Дата:
Сообщение: pgsql: Fix pg_dumpall to work for databases flagged as read-only.