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(-)