Rely on executor utils to build targetlist for DML RETURNING.
authorAndres Freund <andres@anarazel.de>
Fri, 29 Dec 2017 20:26:29 +0000 (12:26 -0800)
committerAndres Freund <andres@anarazel.de>
Fri, 29 Dec 2017 20:26:29 +0000 (12:26 -0800)
commit4717fdb14cf0a62ffe1b1023e1c5ea8866e34fa0
treeaff7d9798c1d056d1c253bccd9a8bdc242c733f7
parentd02974e32e028fc078d8f5eca1d6a4516efb0aa6
Rely on executor utils to build targetlist for DML RETURNING.

This is useful because it gets rid of the sole direct user of
ExecAssignResultType(). A future commit will likely make use of that
and combine creating the targetlist with the initialization of the
result slot. But it seems like good code hygiene anyway.

Author: Andres Freund
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de
src/backend/executor/nodeModifyTable.c