Re: Timeout for asynchronous replication Re: Timeout and wait-forever in sync rep - Mailing list pgsql-hackers

From Fujii Masao
Subject Re: Timeout for asynchronous replication Re: Timeout and wait-forever in sync rep
Date
Msg-id AANLkTinEqnwEw7YzVAJ=jgcDtVKC9OKn1BqzZLZ2X-XF@mail.gmail.com
Whole thread Raw
In response to Re: Timeout for asynchronous replication Re: Timeout and wait-forever in sync rep  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
List pgsql-hackers
On Mon, Dec 6, 2010 at 11:54 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> Hmm, that's actually a quite different timeout than what's required for
> synchronous replication. In synchronous replication, you need to get an
> acknowledgment within a timeout. This patch only puts a timeout on how long
> we wait to have enough room in the TCP send buffer. That doesn't seem all
> that useful.

Yeah, I'm planning to implement that timeout for synchronous replication later.
Since I thought that we should implement the timeout for *asynchronous*
replication first and then extend it for synchronous replication, I created this
patch. This kind of timeout is required for asynchronous replication since
since there is no acknowledgement from the standby in it.

Most part of the patch implements the non-blocking send function and
changes walsender so that it uses that function instead of existing blocking
one. This will be infrastructure for the timeout for synchronous replication.

Regards,

-- 
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: We really ought to do something about O_DIRECT and data=journalled on ext4
Next
From: Josh Berkus
Date:
Subject: Re: We really ought to do something about O_DIRECT and data=journalled on ext4