]> granicus.if.org Git - postgresql/commit
Prevent ExecInsert() and ExecUpdate() from scribbling on the result tuple
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Nov 2005 17:42:55 +0000 (17:42 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Nov 2005 17:42:55 +0000 (17:42 +0000)
commit76ce39e386fdcd73c864ac1cf79cb81547e54e4f
tree93d8130de89c608cd612146b49691edf73e06412
parent08ee64ebf5e5495c3660a2c9f278a3bf3e60b853
Prevent ExecInsert() and ExecUpdate() from scribbling on the result tuple
slot of the topmost plan node when a trigger returns a modified tuple.
These appear to be the only places where a plan node's caller did not
treat the result slot as read-only, which is an assumption that nodeUnique
makes as of 8.1.  Fixes trigger-vs-DISTINCT bug reported by Frank van Vugt.
src/backend/executor/execMain.c
src/backend/executor/execUtils.c
src/include/nodes/execnodes.h