]> granicus.if.org Git - postgresql/commit
Arrange to fsync two-phase-commit state files only during checkpoints;
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 19 Jun 2005 20:00:39 +0000 (20:00 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 19 Jun 2005 20:00:39 +0000 (20:00 +0000)
commite26b0abda3919448d5ccbcaac0415010022864b7
tree0fb99bb211501ac45d5284560786f0780cfb9974
parentba90268e2b125cb21f74b0a4b05ce4f4797186c8
Arrange to fsync two-phase-commit state files only during checkpoints;
given reasonably short lifespans for prepared transactions, this should
mean that only a small minority of state files ever need to be fsynced
at all.  Per discussion with Heikki Linnakangas.
src/backend/access/transam/twophase.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlog.c
src/include/access/twophase.h