pgsql: Make heap_update() set newtup->t_tableOid correctly, for

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Make heap_update() set newtup->t_tableOid correctly, for
Date: 2008-12-16 16:26:14
Message-ID: 20081216162614.CCC087563FE@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/access/heap:
heapam.c (r1.249.2.3 -> r1.249.2.4)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/heap/heapam.c?r1=1.249.2.3&r2=1.249.2.4)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-12-16 16:26:21 pgsql: Make heap_update() set newtup->t_tableOid correctly, for
Previous Message Tom Lane 2008-12-16 16:26:08 pgsql: Make heap_update() set newtup->t_tableOid correctly, for