Or just a single transaction with synchronous_commit!
> Specifies whether transaction commit will wait for WAL records to be written to disk before the command returns a "success" indication to the client.
> This parameter can be changed at any time; the behavior for any one transaction is determined by the setting in effect when it commits.
http://www.postgresql.org/docs/9.3/static/runtime-config-wal...