Simplify and encapsulate tuple routing support code.
Robert Haas <rhaas@postgresql.org>
Simplify and encapsulate tuple routing support code. Instead of having ExecSetupPartitionTupleRouting return multiple out parameters, have it return a pointer to a structure containing all of those different things. Also, provide and use a cleanup function, ExecCleanupTupleRouting, instead of cleaning up all of the resources allocated by ExecSetupPartitionTupleRouting individually. Amit Khandekar, reviewed by Amit Langote, David Rowley, and me Discussion: http://postgr.es/m/CAJ3gD9fWfxgKC+PfJZF3hkgAcNOy-LpfPxVYitDEXKHjeieWQQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +20 −66 |
| src/backend/executor/execPartition.c | modified | +66 −42 |
| src/backend/executor/nodeModifyTable.c | modified | +29 −65 |
| src/include/executor/execPartition.h | modified | +38 −9 |
| src/include/nodes/execnodes.h | modified | +1 −8 |
Discussion
- UPDATE of partition key 254 messages · 2017-02-13 → 2018-01-24