Use ResultRelInfo ** rather than ResultRelInfo * for tuple routing.
authorRobert Haas <rhaas@postgresql.org>
Thu, 12 Oct 2017 20:50:53 +0000 (16:50 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 12 Oct 2017 20:50:53 +0000 (16:50 -0400)
commit60f7c0abef0327648c02795312d1679c66586fbb
tree8f3bcc629324e6f338cceea686e9d498691c7a55
parent305cf1fd7239e0ffa9ae4ff54a7c66f36432c741
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
src/backend/commands/copy.c
src/backend/executor/execMain.c
src/backend/executor/nodeModifyTable.c
src/include/executor/executor.h
src/include/nodes/execnodes.h