Fujii Masao wrote: > In the 'replication-orig' branch, walreceiver fsyncs the previous XLOG > file after receiving new XLOG records before writing them. This would > increase the backend's waiting time for replication in synchronous case. > The walreceiver should fsync the XLOG file after sending ACK (if needed) > before receiving the next XLOG records?
I don't follow. Wareceiver does fsync the file just after writing it if the fsync_requested flag was set in the message. Surely that would be set in synchronous mode, that's what the flag is for, right? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers