OSDN Git Service

Fix the torn-page hazard for PITR base backups by forcing full page writes
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Apr 2006 18:55:05 +0000 (18:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 17 Apr 2006 18:55:05 +0000 (18:55 +0000)
commit0a8739495664d02af82a08960cfd17fad2cb9508
treebbd1243e6961d38ba834768ec1ed6ca392ed9854
parent8e7aaeb62e7ff1ea6c7668e39277411d150ccf33
Fix the torn-page hazard for PITR base backups by forcing full page writes
to occur between pg_start_backup() and pg_stop_backup(), even if the GUC
setting full_page_writes is OFF.  Per discussion, doing this in combination
with the already-existing checkpoint during pg_start_backup() should ensure
safety against partial page updates being included in the backup.  We do
not have to force full page writes to occur during normal PITR operation,
as I had first feared.
src/backend/access/transam/xlog.c