Re: Streaming Replication patch for CommitFest 2009-09

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Streaming Replication patch for CommitFest 2009-09
Date: 2009-09-24 10:41:57
Message-ID: 4ABB4CF5.4010908@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2009-09-24 10:55:49 Re: Streaming Replication patch for CommitFest 2009-09
Previous Message Heikki Linnakangas 2009-09-24 10:33:30 Re: Hot Standby 0.2.1