Make heap_update() set newtup->t_tableOid correctly, for consistency with
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Dec 2008 16:26:08 +0000 (16:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 16 Dec 2008 16:26:08 +0000 (16:26 +0000)
commitb546aef49abe4a25683b3c99ffe48f4a12d002b1
tree7000dd4ccf62b7f76584a9a9f4587f50155758b4
parent8874a7b66eb907fcc5f6801d88e6fa8b574f0c21
Make heap_update() set newtup->t_tableOid correctly, for consistency with
the other major heapam.c functions.  The only known consequence of this
omission is that UPDATE RETURNING failed to return the correct value for
"tableoid", as per report from KaiGai Kohei.

Back-patch to 8.2.  Arguably it's wrong all the way back; but without
evidence of visible breakage before RETURNING was added, I'll desist from
patching the older branches.
src/backend/access/heap/heapam.c