Manfred Spraul <manfred(at)colorfullife(dot)com> writes:
> But the change highlights one point: the order in which file blocks are
> written to disk is undefined. Theoretically the wal checkpoint record
> could be on the platter, but the preceeding pages were not written.
> Is that case handled by the wal replay code?
We don't care, unless of course the kernel returns claiming that fsync
is done when it's not all done yet.
regards, tom lane