pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: hot_standby_feedback doesn't work on busy servers in 9.3+
Date: Fri, 17 Jan 2014 10:50:29 +0200
Message-ID: <52D8EED5.5000309@vmware.com> (raw)
In-Reply-To: <20140116215510.GG30206@awork2.anarazel.de>
References: <20140115130150.GB8653@awork2.anarazel.de>
	<CAA4eK1K-pXw7jEFQ8dzMpX9_fUjhKn2rOvjfiL1rD94km63v0g@mail.gmail.com>
	<20140116084427.GG8653@awork2.anarazel.de>
	<52D84DFD.3040503@vmware.com>
	<20140116215510.GG30206@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 01/16/2014 11:55 PM, Andres Freund wrote:
> On 2014-01-16 23:24:13 +0200, Heikki Linnakangas wrote:
>> The reply message contains a pointers for how far the WAL has been applied,
>> written, and flushed. There can be a significant delay between the write and
>> flush steps, so we send a separate reply after writing, and after flushing.
>> (if we didn't, the flush and write pointers sent to the master would always
>> be the equal).
>
> If we'd always send a message, I'd be convinced by that argument, but
> we're only sending messages after a timeout. This means that if syncrep
> is on, we will more frequently have explicitly ask the receiver to send
> a confirmation since the reply before the flush will have reset the
> timers causing the reply after the flush to only infrequently send
> something.

No, XLogWalRcvSendReply also sends the reply if the flush or write 
pointers have advanced since last reply, even if the timeout hasn't expired.

- Heikki


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (9+ messages)  latest in thread

Message-ID: <52D8EED5.5000309@vmware.com>
Permalink:  ../52D8EED5.5000309@vmware.com/
Also on:    postgresql.org/message-id/52D8EED5.5000309@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: hlinnakangas@vmware.com, andres@2ndquadrant.com, amit.kapila16@gmail.com
  Subject: Re: hot_standby_feedback doesn't work on busy servers in 9.3+
  In-Reply-To: <52D8EED5.5000309@vmware.com>
  References: <20140115130150.GB8653@awork2.anarazel.de> <CAA4eK1K-pXw7jEFQ8dzMpX9_fUjhKn2rOvjfiL1rD94km63v0g@mail.gmail.com> <20140116084427.GG8653@awork2.anarazel.de> <52D84DFD.3040503@vmware.com> <20140116215510.GG30206@awork2.anarazel.de> <52D8EED5.5000309@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox