Minor preparatory refactoring for UPDATE row movement.

Robert Haas <rhaas@postgresql.org>

Commit: ef6087ee5fa84206dc24ba1339e229354b05cf2a
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-01-04T21:25:49Z
Releases: 11.0
Minor preparatory refactoring for UPDATE row movement.

Generalize is_partition_attr to has_partition_attrs and make it
accessible from outside tablecmds.c.  Change map_partition_varattnos
to clarify that it can be used for mapping between any two relations
in a partitioning hierarchy, not just parent -> child.

Amit Khandekar, reviewed by Amit Langote, David Rowley, and me.
Some comment changes by me.

Discussion: http://postgr.es/m/CAJ3gD9fWfxgKC+PfJZF3hkgAcNOy-LpfPxVYitDEXKHjeieWQQ@mail.gmail.com

Files

PathChange+/−
src/backend/catalog/partition.c modified +77 −10
src/backend/commands/tablecmds.c modified +6 −65
src/include/catalog/partition.h modified +4 −2

Discussion