>>>>> "Sam" == Sam Mason <sam@samason.me.uk> writes:
Sam> Hi,Sam> I had an idea while going home last night and still can't thinkSam> why it's not implemented already as it
seemsobvious.[snip idea about WAL fsyncs]
Unless I'm badly misunderstanding you, I think it already has (long
ago).
Only the holder of the WALWriteLock can write and fsync the WAL, and
XLogFlush implements pretty much exactly the logic you described.
--
Andrew (irc:RhodiumToad)