> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I was wondering, when we start to reuse a WAL file, do we know that all
> > dirty buffers modified in that WAL file have been flushed to disk?
>
> Yes. At least two checkpoints ago, in fact.
So when we decide to reuse a shared memory buffer and write it to disk,
do we fsync it, or do we run a file sync() to force all dirty buffers to
disk?
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill,
Pennsylvania19026