Minor preparatory refactoring for UPDATE row movement.
Robert Haas <rhaas@postgresql.org>
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
| Path | Change | +/− |
|---|---|---|
| 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
- UPDATE of partition key 254 messages · 2017-02-13 → 2018-01-24