Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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.
regards, tom lane