]> granicus.if.org Git - postgresql/commit
Fix bugs in the COPY heap-insert batching patch.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 9 Nov 2011 19:24:26 +0000 (21:24 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 9 Nov 2011 19:28:25 +0000 (21:28 +0200)
commitf81648cb1ee5ce8d2e479a17db512046012c77e7
tree3cd34c51ccf8dfff72b23d1e9cd69b3e465852b7
parent3ad2c8e1681ba34a7b764a356489fdc580dc553c
Fix bugs in the COPY heap-insert batching patch.

Forgot to call RestoreBkpBlocks() in the redo-function, as pointed out by
Simon Riggs. In redo of a regular heap insert, it's taken care of in
heap_redo(), but this new record type uses the heap2 RM, and heap2_redo()
does not take care of that for you.

Also, failed to reset the vmbuffer and all_visibile_cleared local variables
after switching to a new buffer.
src/backend/access/heap/heapam.c