OSDN Git Service

Further thinking about heap_mark4update: in HeapTupleSelfUpdated case,
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Sep 2002 22:57:44 +0000 (22:57 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Sep 2002 22:57:44 +0000 (22:57 +0000)
commit233ecca7c91b900984faf6f8cfdeec75589778ae
treeb812f3b80088d074cea22d762ac6edf0b6e08866
parent0d3be98ae9524e78d51d259f4fae00850e987e9d
Further thinking about heap_mark4update: in HeapTupleSelfUpdated case,
executor should not return the tuple as successfully marked, because in
fact it's been deleted.  Not clear that this case has ever been seen
in practice (I think you'd have to write a SELECT FOR UPDATE that calls
a function that deletes some row the SELECT will visit later...) but we
should be consistent.  Also add comments to several other places that
got it right but didn't explain what they were doing.
src/backend/commands/trigger.c
src/backend/executor/execMain.c