Rewrite gather-write patch into something less obviously bolted on
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Aug 2005 23:59:04 +0000 (23:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 22 Aug 2005 23:59:04 +0000 (23:59 +0000)
commit9052537325158c2e377a6217a894e5631cb92f4a
tree8d2bfadd03a896fda6995164b99ff0329c15c272
parentae94f10397207e4d8f5d373aaba0eda319acedc0
Rewrite gather-write patch into something less obviously bolted on
after the fact.  Fix bug with incorrect test for whether we are at end
of logfile segment.  Arrange for writes triggered by XLogInsert's
is-cache-more-than-half-full test to synchronize with the cache boundaries,
so that in long transactions we tend to write alternating halves of the
cache rather than randomly chosen portions of it; this saves one more
write syscall per cache load.
src/backend/access/transam/xlog.c