pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: Andres Freund <andres@anarazel.de>
Cc: nag1010@gmail.com, jdnelson@dyn.com, PostgreSQL mailing lists <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] [BUGS] Bug in Physical Replication Slots (at least 9.5)?
Date: Wed, 17 Jan 2018 07:38:32 -0500
Message-ID: <20180117123832.GB2416@tamriel.snowman.net> (raw)
In-Reply-To: <CAB7nPqT4kVLhPZSd5zC953jfhfexkZkMiVXKfxiBrSxoA4r5Eg@mail.gmail.com>
References: <20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de>
	<20170907.123347.101584520.horiguchi.kyotaro@lab.ntt.co.jp>
	<CAB7nPqR+J1Xw+yzfsrehiQ+rh3ac+n5sEUgP7UOQ4_ymFnO9wg@mail.gmail.com>
	<20171026.190551.208996945.horiguchi.kyotaro@lab.ntt.co.jp>
	<CAB7nPqSaWrJD0fVN4uX=e=D9FqEYqPq-S2X_TC60kJ0YX2-5eQ@mail.gmail.com>
	<CAB7nPqT4kVLhPZSd5zC953jfhfexkZkMiVXKfxiBrSxoA4r5Eg@mail.gmail.com>

Michael, Andres,

* Michael Paquier (michael.paquier@gmail.com) wrote:
> On Fri, Oct 27, 2017 at 3:13 AM, Michael Paquier
> <michael.paquier@gmail.com> wrote:
> > On Thu, Oct 26, 2017 at 3:05 AM, Kyotaro HORIGUCHI
> > <horiguchi.kyotaro@lab.ntt.co.jp> wrote:
> >> The largest obstacle to do that is that walreceiver is not
> >> utterly concerned to record internals. In other words, it doesn't
> >> know what a record is. Teaching that introduces much complexity
> >> and the complexity slows down the walreceiver.
> >>
> >> Addition to that, this "problem" occurs also on replication
> >> without a slot. The latest patch also help the case.
> >
> > That's why replication slots have been introduced to begin with. The
> > WAL receiver gives no guarantee that a segment will be retained or not
> > based on the beginning of a record. That's sad that the WAL receiver
> > does not track properly restart LSN and instead just uses the flush
> > LSN. I am beginning to think that a new message type used to report
> > the restart LSN when a replication slot is in use would just be a
> > better and more stable solution. I haven't looked at the
> > implementation details yet though.
> 
> Yeah, I am still on track with this idea. Splitting the flush LSN and
> the restart LSN properly can allow for better handling on clients. For
> now I am moving this patch to the next CF.

Thanks for looking at this patch previously.  This patch is still in
Needs Review but it's not clear if that's correct or not, but this seems
to be a bug-fix, so it would be great if we could make some progress on
it (particularly since it was reported over a year ago and goes back to
9.4, according to the thread, from what I can tell).

Any chance one of you can provide some further thoughts on it or make it
clear if we are waiting for a new patch or if the existing one is still
reasonable and just needs to be reviewed (in which case, perhaps one of
you could help with that..)?

Thanks again!

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (55+ messages)  latest in thread

Message-ID: <20180117123832.GB2416@tamriel.snowman.net>
Permalink:  ../20180117123832.GB2416@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180117123832.GB2416@tamriel.snowman.net

 · 

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: sfrost@snowman.net, michael.paquier@gmail.com, horiguchi.kyotaro@lab.ntt.co.jp, andres@anarazel.de, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] [BUGS] Bug in Physical Replication Slots (at least 9.5)?
  In-Reply-To: <20180117123832.GB2416@tamriel.snowman.net>
  References: <20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de> <20170907.123347.101584520.horiguchi.kyotaro@lab.ntt.co.jp> <CAB7nPqR+J1Xw+yzfsrehiQ+rh3ac+n5sEUgP7UOQ4_ymFnO9wg@mail.gmail.com> <20171026.190551.208996945.horiguchi.kyotaro@lab.ntt.co.jp> <CAB7nPqSaWrJD0fVN4uX=e=D9FqEYqPq-S2X_TC60kJ0YX2-5eQ@mail.gmail.com> <CAB7nPqT4kVLhPZSd5zC953jfhfexkZkMiVXKfxiBrSxoA4r5Eg@mail.gmail.com> <20180117123832.GB2416@tamriel.snowman.net>

* 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