pgsql: Fix dumping of security_barrier views with circular dependencies

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix dumping of security_barrier views with circular dependencies
Дата
Msg-id E1T3u0Z-00071E-63@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix dumping of security_barrier views with circular dependencies.

If a view has circular dependencies, pg_dump splits it into a CREATE TABLE
and a CREATE RULE command to break the dependency loop.  However, if the
view has reloptions, those options cannot be applied in the CREATE TABLE
command, because views and tables have different allowed reloptions so
CREATE TABLE would reject them.  Instead apply the reloptions after the
CREATE RULE, using ALTER VIEW SET.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/0f524ea0cf388a149f362e48a33c01662eeddc04

Modified Files
--------------
src/bin/pg_dump/pg_dump.c      |   25 +++++++++++++++++++++----
src/bin/pg_dump/pg_dump.h      |    2 ++
src/bin/pg_dump/pg_dump_sort.c |   13 +++++++++++--
3 files changed, 34 insertions(+), 6 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Improve C comments in GetSnapshotData.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix dumping of security_barrier views with circular dependencies