>>>>> "Sam" == Sam Mason <s...@samason.me.uk> writes:

 Sam> Hi,
 Sam> I had an idea while going home last night and still can't think
 Sam> why it's not implemented already as it seems obvious.
 [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)

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to