]> 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:43:13 +0000 (17:43 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Nov 2005 17:43:13 +0000 (17:43 +0000)
commit431178ae678f61ee20f6fa90ee7eb2f3ead254fb
treea98a139f364ac0ca7656ff3bac0ee26f3630da01
parentf82df77c9d7e443796bf730f4277e730c514863c
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