> > > Now thinking about it, the guy had corrupt table, not WAL log.
> > > How is WAL->tables synched? Does the 'wal_sync_method'
> > > affect it or not?
> >
> > I *think* it always fsyncs() there as it is now, but I'm
> not 100% sure.
>
> No. If fsync is off, then no fsync is done to the data files
> on checkpoint either. (See mdsync() on src/backend/storage/smgr/md.c)
Right, but we're not talking fsync=off, we're talking when you are using
fdatasync, O_SYNC etc.
If you turn off fsync you're on your own, no matter the OS or other
settings...
//Magnus