Use ResultRelInfo ** rather than ResultRelInfo * for tuple routing.
Robert Haas <rhaas@postgresql.org>
Use ResultRelInfo ** rather than ResultRelInfo * for tuple routing. The previous convention doesn't lend itself to creating ResultRelInfos lazily, as we already do in ExecGetTriggerResultRel. This patch doesn't make anything lazier than before, but the pending patch for UPDATE tuple routing proposes to do so (and there might be other opportunities as well). Amit Khandekar with some adjustments by me. Discussion: http://postgr.es/m/CA+TgmoYPVP9Lyf6vUFA5DwxS4c--x6LOj2y36BsJaYtp62eXPQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copy.c | modified | +5 −5 |
| src/backend/executor/execMain.c | modified | +7 −6 |
| src/backend/executor/nodeModifyTable.c | modified | +43 −31 |
| src/include/executor/executor.h | modified | +1 −1 |
| src/include/nodes/execnodes.h | modified | +1 −1 |
Discussion
- UPDATE of partition key 254 messages · 2017-02-13 → 2018-01-24