pgsql: Fix checksums for CLUSTER, VACUUM FULL etc.

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix checksums for CLUSTER, VACUUM FULL etc.
Date: 2013-04-07 21:27:38
Message-ID: E1UOx7i-0004Mn-SK@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2013-04-07 21:39:11 pgsql: Tune BufferGetLSNAtomic() when checksums !enabled
Previous Message Tom Lane 2013-04-07 18:47:07 pgsql: Get rid of USE_WIDE_UPPER_LOWER dependency in trigram constructi