]> granicus.if.org Git - postgresql/commit
Teach map_partition_varattnos to handle whole-row expressions.
authorRobert Haas <rhaas@postgresql.org>
Thu, 3 Aug 2017 15:21:29 +0000 (11:21 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 3 Aug 2017 15:21:29 +0000 (11:21 -0400)
commit610e8ebb0fadd7a738c2ad07fef6c5ea86b11f8d
tree703e9cd198a275278767d7e1756907305e580429
parent5ff3d73813ebcc3ff80be77c30b458d728951036
Teach map_partition_varattnos to handle whole-row expressions.

Otherwise, partitioned tables with RETURNING expressions or subject
to a WITH CHECK OPTION do not work properly.

Amit Langote, reviewed by Amit Khandekar and Etsuro Fujita.  A few
comment changes by me.

Discussion: http://postgr.es/m/9a39df80-871e-6212-0684-f93c83be4097@lab.ntt.co.jp
src/backend/catalog/partition.c
src/backend/commands/tablecmds.c
src/backend/executor/nodeModifyTable.c
src/backend/parser/parse_utilcmd.c
src/backend/rewrite/rewriteManip.c
src/include/catalog/partition.h
src/include/rewrite/rewriteManip.h
src/test/regress/expected/insert.out
src/test/regress/expected/updatable_views.out
src/test/regress/sql/insert.sql
src/test/regress/sql/updatable_views.sql