Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W49Ps-0004qe-IU for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jan 2014 13:24:56 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W49Pr-0007FU-1x for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jan 2014 13:24:55 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W49Ou-0005wE-K7 for pgsql-bugs@postgresql.org; Fri, 17 Jan 2014 13:23:56 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W49Oj-00088D-Pw for pgsql-bugs@postgresql.org; Fri, 17 Jan 2014 13:23:55 +0000 Received: from anarazel.de (p5DDC749C.dip0.t-ipconnect.de [93.220.116.156]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0M8azD-1V9S0N413r-00vZFD; Fri, 17 Jan 2014 14:23:41 +0100 Received: by anarazel.de (Postfix, from userid 1000) id E2669102D0E; Fri, 17 Jan 2014 14:23:39 +0100 (CET) Date: Fri, 17 Jan 2014 14:23:39 +0100 From: Andres Freund To: Heikki Linnakangas Cc: Amit Kapila , PostgreSQL Bugs Subject: Re: hot_standby_feedback doesn't work on busy servers in 9.3+ Message-ID: <20140117132339.GI30206@awork2.anarazel.de> References: <20140115130150.GB8653@awork2.anarazel.de> <20140116084427.GG8653@awork2.anarazel.de> <52D84DFD.3040503@vmware.com> <20140116215510.GG30206@awork2.anarazel.de> <52D8EED5.5000309@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52D8EED5.5000309@vmware.com> X-Provags-ID: V02:K0:Iw8+LQm5mRL4urgGNI3pcD6U4COFsOoxYc2I/y9NjhM SsEkWWciZ1lLCB/aUQaegEus9RJ/8omxFL9ZZG3P0sf2BQrXja PxqiYy83SayhvI2XFOYGD5ZFdcF0rGAvLY+cL29sCRrLdeyzNq zoq3AahghCDf7UMYnNvJ8stRSyzQGdTHFO97XQGLYdkgRDNFK4 KKhnB4SkqttUDMsTl5FA/HdC/9VmkfsO3as4FuwshdiveF/fxi HSz4/YjOm60qUIkwXdhaUlxcOdlSeaQ1zHBLWKkUlz0UZ5OwIv k1HBN/ZO3rqBzXFgM8MqR7oaod2vj8peT1YDMsn5YruH4C5Z0u EdPKbUR5R2yTTQ6nYE64veSoLq8WttuZik4rbbXYX X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 2014-01-17 10:50:29 +0200, Heikki Linnakangas wrote: > 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. Uh. Yes. I mis-remembered that we weren't doing that, but that's just the apply value... Sorry for the noise, ' Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs