Tommi Maekitalo <t(dot)maekitalo(at)epgmbh(dot)de> writes:
> It would be difficult to guarantee dataintegrity, when the datapages are
> written before WAL is on the hard-disk.
Indeed, which is why we never do that. WAL is always fsync'd.
regards, tom lane