Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W458T-0002wv-5p for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jan 2014 08:50:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W458S-0007dP-Hp for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jan 2014 08:50:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W458R-0007dI-JC for pgsql-bugs@postgresql.org; Fri, 17 Jan 2014 08:50:39 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W458N-0000fZ-1x for pgsql-bugs@postgresql.org; Fri, 17 Jan 2014 08:50:38 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 9ED7D285BB; Fri, 17 Jan 2014 00:50:32 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 9ACD640496; Fri, 17 Jan 2014 00:50:32 -0800 (PST) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id A3634C0058; Fri, 17 Jan 2014 00:51:08 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Fri, 17 Jan 2014 00:51:07 -0800 (PST) Message-ID: <52D8EED5.5000309@vmware.com> Date: Fri, 17 Jan 2014 10:50:29 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Andres Freund CC: Amit Kapila , PostgreSQL Bugs Subject: Re: hot_standby_feedback doesn't work on busy servers in 9.3+ References: <20140115130150.GB8653@awork2.anarazel.de> <20140116084427.GG8653@awork2.anarazel.de> <52D84DFD.3040503@vmware.com> <20140116215510.GG30206@awork2.anarazel.de> In-Reply-To: <20140116215510.GG30206@awork2.anarazel.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.2 (-------) 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 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