]> granicus.if.org Git - postgresql/commit
Fix checksums for CLUSTER, VACUUM FULL etc.
authorSimon Riggs <simon@2ndQuadrant.com>
Sun, 7 Apr 2013 21:16:51 +0000 (22:16 +0100)
committerSimon Riggs <simon@2ndQuadrant.com>
Sun, 7 Apr 2013 21:16:51 +0000 (22:16 +0100)
commitcf8dc9e10c0d954970cbe5ca9be4c6b881cde482
treec2916019fb2fd75b01400f1f746f62425ff1e44f
parent7844608e54a3a2e3dee461b00fd6ef028a845d7c
Fix checksums for CLUSTER, VACUUM FULL etc.
In CLUSTER, VACUUM FULL and ALTER TABLE SET TABLESPACE
I erroneously set checksum before log_newpage, which
sets the LSN and invalidates the checksum. So set
checksum immediately *after* log_newpage.

Bug report Fujii Masao, Fix and patch by Jeff Davis
src/backend/access/heap/rewriteheap.c
src/backend/commands/tablecmds.c