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
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/cf8dc9e10c0d954970cbe5ca9be4c6b881cde482
Modified Files
--------------
src/backend/access/heap/rewriteheap.c | 10 ++++++----
src/backend/commands/tablecmds.c | 12 +++++++++++-
2 files changed, 17 insertions(+), 5 deletions(-)