Fix things so that updatable views work with partitioned tables.
Robert Haas <rhaas@postgresql.org>
Fix things so that updatable views work with partitioned tables. Previously, ExecInitModifyTable was missing handling for WITH CHECK OPTION, and view_query_is_auto_updatable was missing handling for RELKIND_PARTITIONED_TABLE. Amit Langote, reviewed by me.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/executor/nodeModifyTable.c | modified | +40 −0 |
| src/backend/rewrite/rewriteHandler.c | modified | +2 −1 |
| src/test/regress/expected/updatable_views.out | modified | +24 −0 |
| src/test/regress/sql/updatable_views.sql | modified | +19 −0 |