]> granicus.if.org Git - postgresql/commit
Adjust WAL code so that checkpoints truncate the xlog at the previous
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 6 Jun 2001 17:07:46 +0000 (17:07 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 6 Jun 2001 17:07:46 +0000 (17:07 +0000)
commit1173344e74f7b0eccb9bf3ad2307c82e12cb4fd8
tree00c3aef112f9552cca8be339a7119d0541d73578
parentce370eec3555a48c05154fa2e3f102af9c851e1e
Adjust WAL code so that checkpoints truncate the xlog at the previous
checkpoint's redo pointer, not its undo pointer, per discussion in
pghackers a few days ago.  No point in hanging onto undo information
until we have the ability to do something with it --- and this solves
a rather large problem with log space for long-running transactions.
Also, change all calls of write() to detect the case where write
returned a count less than requested, but failed to set errno.
Presume that this situation indicates ENOSPC, and give the appropriate
error message, rather than a random message associated with the previous
value of errno.
contrib/dbase/dbf.c
contrib/pg_resetxlog/pg_resetxlog.c
src/backend/access/transam/xlog.c
src/backend/storage/file/fd.c
src/backend/storage/smgr/md.c
src/backend/utils/init/miscinit.c