Rely on executor utils to build targetlist for DML RETURNING.

Andres Freund <andres@anarazel.de>

Commit: 4717fdb14cf0a62ffe1b1023e1c5ea8866e34fa0
Author: Andres Freund <andres@anarazel.de>
Date: 2017-12-29T20:26:29Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/executor/nodeModifyTable.c modified +4 −6

Discussion