Teach map_partition_varattnos to handle whole-row expressions.

Robert Haas <rhaas@postgresql.org>

Commit: 610e8ebb0fadd7a738c2ad07fef6c5ea86b11f8d
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-08-03T15:21:29Z
Releases: 10.0
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

Files

Discussion