Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zqg7G-0006u0-Jc for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Oct 2015 11:39:06 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zqg7G-0001yd-6F for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Oct 2015 11:39:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zqg7F-0001y1-DA for pgsql-bugs@postgresql.org; Mon, 26 Oct 2015 11:39:05 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Zqg7C-0002BW-08 for pgsql-bugs@postgresql.org; Mon, 26 Oct 2015 11:39:04 +0000 Received: by mail.anarazel.de (Postfix, from userid 108) id CE88F860003; Mon, 26 Oct 2015 12:39:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail X-Spam-Level: X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from anarazel.de (p5DDC5A96.dip0.t-ipconnect.de [93.220.90.150]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id C08E5860002; Mon, 26 Oct 2015 12:38:57 +0100 (CET) Received: by anarazel.de (Postfix, from userid 1000) id 55E8C102F78; Mon, 26 Oct 2015 12:38:57 +0100 (CET) Date: Mon, 26 Oct 2015 12:38:57 +0100 From: Andres Freund To: "Shulgin, Oleksandr" Cc: Ofir Manor , Pg Bugs Subject: Re: BUG #13725: Logical Decoding - wrong results with large transactions and unfortunate timing Message-ID: <20151026113857.GC620@awork2.anarazel.de> References: <20151025191436.3017.36314@wrigleys.postgresql.org> <20151026110502.GA620@awork2.anarazel.de> <20151026113006.GB620@awork2.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Pg-Spam-Score: -4.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 2015-10-26 12:34:48 +0100, Shulgin, Oleksandr wrote: > On Mon, Oct 26, 2015 at 12:30 PM, Andres Freund wrote: > > > On 2015-10-26 13:21:44 +0200, ofir.manor@gmail.com wrote: > > > Yes, this is a small script to reproduce, the real code is Java, we saw > > > sporadic wrong results. > > > However, I'm interested in CDC (get change notifications per row to my > > > app), not PG-to-PG replication. > > > > The streaming interface exists for row-by-row notification as well, and > > is a *LOT* more efficient. > > > > Yeah, but I don't think there's a workable Java implementation available > yet? No idea, but it's not that hard to write one. > > If there's a bug here, we obviously need to fix it nonetheless. > I would assume re-calculating end_of_wal in the while loop condition would > fix this? Why? That'd just lead to outputting more rows in one invocation, and that's it? I think I'm not following what you see as the problem? -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs