postgresql/src/backend/access
Andres Freund 22ccce5206 Fix decoding of consecutive MULTI_INSERTs emitted by one heap_multi_insert().
Commit 1b86c81d2d fixed the decoding of toasted columns for the rows
contained in one xl_heap_multi_insert record. But that's not actually
enough, because heap_multi_insert() will actually first toast all
passed in rows and then emit several *_multi_insert records; one for
each page it fills with tuples.

Add a XLOG_HEAP_LAST_MULTI_INSERT flag which is set in
xl_heap_multi_insert->flag denoting that this multi_insert record is
the last emitted by one heap_multi_insert() call. Then use that flag
in decode.c to only set clear_toast_afterwards in the right situation.

Expand the number of rows inserted via COPY in the corresponding
regression test to make sure that more than one heap page is filled
with tuples by one heap_multi_insert() call.

Backpatch to 9.4 like the previous commit.
2014-07-12 14:30:43 +02:00
..
common pgindent run for 9.4 2014-05-06 12:12:18 -04:00
gin Fix bug in lossy-page handling in GIN 2014-05-10 23:28:26 +03:00
gist pgindent run for 9.4 2014-05-06 12:12:18 -04:00
hash pgindent run for 9.4 2014-05-06 12:12:18 -04:00
heap Fix decoding of consecutive MULTI_INSERTs emitted by one heap_multi_insert(). 2014-07-12 14:30:43 +02:00
index pgindent run for 9.4 2014-05-06 12:12:18 -04:00
nbtree Fix error when trying to delete page with half-dead left sibling. 2014-05-25 18:18:09 -04:00
rmgrdesc pgindent run for 9.4 2014-05-06 12:12:18 -04:00
spgist Fix infinite loop when splitting inner tuples in SPGiST text indexes. 2014-06-09 16:31:11 -04:00
transam Have multixact be truncated by checkpoint, not vacuum 2014-06-27 14:43:52 -04:00
Makefile Split out rmgr rm_desc functions into their own files 2012-11-28 13:01:15 -03:00