]> granicus.if.org Git - postgresql/commit
In rewriteheap.c (used by VACUUM FULL and CLUSTER), calculate the tuple
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 9 Nov 2010 15:40:09 +0000 (17:40 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 9 Nov 2010 15:48:30 +0000 (17:48 +0200)
commit39a67533975c8cbadf3d755216cea3ec2c3ce64c
treed663bfaa2bbed4992d7a841c59d295cea0a7839a
parente55e4c9ced485b44be9e100bbe54546a3272ddae
In rewriteheap.c (used by VACUUM FULL and CLUSTER), calculate the tuple
length stored in the line pointer the same way it's calculated in the normal
heap_insert() codepath. As noted by Jeff Davis, the length stored by
raw_heap_insert() included padding but the one stored by the normal codepath
did not. While the mismatch seems to be harmless, inconsistency isn't good,
and the normal codepath has received a lot more testing over the years.

Backpatch to 8.3 where the heap rewrite code was introduced.
src/backend/access/heap/rewriteheap.c