mirror of https://github.com/postgres/postgres
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.pull/3/head
parent
4b373e42d1
commit
0f524ea0cf
Loading…
Reference in new issue