pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Shulgin, Oleksandr <oleksandr.shulgin@zalando.de>
Cc: Ofir Manor <ofir.manor@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13725: Logical Decoding - wrong results with large transactions and unfortunate timing
Date: Mon, 26 Oct 2015 12:38:57 +0100
Message-ID: <20151026113857.GC620@awork2.anarazel.de> (raw)
In-Reply-To: <CACACo5Q8hDNu8nuNbkScLupmWMpxj+b196iEBLxKKrc5Ey2C8g@mail.gmail.com>
References: <20151025191436.3017.36314@wrigleys.postgresql.org>
	<CACACo5Q-ku2vA0B=m_XQWbBquN=J_EczCfjxvEJ4h5vjEnjGDw@mail.gmail.com>
	<20151026110502.GA620@awork2.anarazel.de>
	<CAPL_MpMjuQbXZ5xaP8GEmaXpOwbKHR1viUrP1ZQrXao4JghdKA@mail.gmail.com>
	<20151026113006.GB620@awork2.anarazel.de>
	<CACACo5Q8hDNu8nuNbkScLupmWMpxj+b196iEBLxKKrc5Ey2C8g@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2015-10-26 12:34:48 +0100, Shulgin, Oleksandr wrote:
> On Mon, Oct 26, 2015 at 12:30 PM, Andres Freund <andres@anarazel.de> 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



view thread (13+ messages)  latest in thread

Message-ID: <20151026113857.GC620@awork2.anarazel.de>
Permalink:  ../20151026113857.GC620@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20151026113857.GC620@awork2.anarazel.de

 · 

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: andres@anarazel.de, oleksandr.shulgin@zalando.de, ofir.manor@gmail.com
  Subject: Re: BUG #13725: Logical Decoding - wrong results with large transactions and unfortunate timing
  In-Reply-To: <20151026113857.GC620@awork2.anarazel.de>
  References: <20151025191436.3017.36314@wrigleys.postgresql.org> <CACACo5Q-ku2vA0B=m_XQWbBquN=J_EczCfjxvEJ4h5vjEnjGDw@mail.gmail.com> <20151026110502.GA620@awork2.anarazel.de> <CAPL_MpMjuQbXZ5xaP8GEmaXpOwbKHR1viUrP1ZQrXao4JghdKA@mail.gmail.com> <20151026113006.GB620@awork2.anarazel.de> <CACACo5Q8hDNu8nuNbkScLupmWMpxj+b196iEBLxKKrc5Ey2C8g@mail.gmail.com> <20151026113857.GC620@awork2.anarazel.de>

* 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