pgsql: Fix heap_multi_insert to set t_self field in the caller's tuples - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Fix heap_multi_insert to set t_self field in the caller's tuples
Date
Msg-id E1RwrCI-00044D-I6@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Fix heap_multi_insert to set t_self field in the caller's tuples.

If tuples were toasted, heap_multi_insert didn't update the ctid on the
original tuples. This caused a failure if there was an after trigger
(including a foreign key), on the table, and a tuple got toasted.

Per off-list report and test case from Ted Phelps

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/21b16342750d6623f3c78f639f07bf3b66b49417

Modified Files
--------------
src/backend/access/heap/heapam.c |    8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Silence warning about deprecated assignment to $[ in check_keywo
Next
From: Andrew Dunstan
Date:
Subject: pgsql: Fix auto-explain JSON output to be valid JSON.