Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpfx7-00077f-TK for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Sep 2017 19:25:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dpfx7-0005mj-D2 for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Sep 2017 19:25:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpfvZ-0002tT-Nd for pgsql-hackers@postgresql.org; Wed, 06 Sep 2017 19:23:57 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dpfvX-0003pZ-9N for pgsql-hackers@postgresql.org; Wed, 06 Sep 2017 19:23:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A545520EC4; Wed, 6 Sep 2017 15:23:54 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Wed, 06 Sep 2017 15:23:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=oIeA/IfqD9aMraZT5W 8uaOxiypTVrQieNhTkrI+iV3A=; b=qT7UUypSerfZwNSBe8i3I+6OttUUcVUqCn jNsq7D38atD20Wd/aJvkNVTS4gFILg5pUuvftajUUyGP7W5jt/Zd1WsPXUnYNVQr nKB348Y7+9PCTrw33awPh7kjwUwDND/UubK4ZjkFnd/ALScOnrAVW8+EU2NEGSOz L3sPSkqKvml9NPn09dKrVlPaVcp4J/u42DOakGt25ukZfh5vzJnTe5MBTI8iZLkm xEH8lMeS9jkfbLPV7UKVumius9pP1XmA72I37DEmcZczO8xAJ2FU0sKwayopPcE1 r50TUIrcMKUazRpkzMILB7fjunYc8xZpJiC/xjDPaGuYIvk52kiQ== X-ME-Sender: X-Sasl-enc: EPrjIBJVXf2W3B8HdvNnbY/m88uNbMEbv3UtfJGLWMGp 1504725834 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id 61EE5243C8; Wed, 6 Sep 2017 15:23:54 -0400 (EDT) Date: Wed, 6 Sep 2017 12:23:53 -0700 From: Andres Freund To: Kyotaro HORIGUCHI Cc: michael.paquier@gmail.com, nag1010@gmail.com, jdnelson@dyn.com, pgsql-hackers@postgresql.org Subject: Re: [BUGS] Bug in Physical Replication Slots (at least 9.5)? Message-ID: <20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de> References: <20170904.155151.168399829.horiguchi.kyotaro@lab.ntt.co.jp> <20170904070434.fngklyhuqg5lflcl@alap3.anarazel.de> <20170906.173602.195129146.horiguchi.kyotaro@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170906.173602.195129146.horiguchi.kyotaro@lab.ntt.co.jp> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2017-09-06 17:36:02 +0900, Kyotaro HORIGUCHI wrote: > Hi, > > At Mon, 4 Sep 2017 17:17:19 +0900, Michael Paquier wrote in > > On Mon, Sep 4, 2017 at 4:04 PM, Andres Freund wrote: > > > I've not read through the thread, but this seems like the wrong approach > > > to me. The receiving side should use a correct value, instead of putting > > > this complexity on the sender's side. > > > > Yes I agree with that. The current patch gives me a bad feeling to be > > honest with the way it does things.. > > The problem is that the current ReadRecord needs the first one of > a series of continuation records from the same source with the > other part, the master in the case. What's the problem with that? We can easily keep track of the beginning of a record, and only confirm the address before that. > A (or the) solution closed in the standby side is allowing to > read a seris of continuation records from muliple sources. I'm not following. All we need to use is the beginning of the relevant records, that's easy enough to keep track of. We don't need to read the WAL or anything. - Andres -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers