We manually control flush of the WAL. We persist the changes outside the loop by calling flush() with sync. Since we only send responses after flush we will never send information about anything that was not persisted.
unlikely
readpage
ubuntu