pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael.paquier@gmail.com>
To: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: andres@anarazel.de
Cc: sfrost@snowman.net
Cc: nag1010@gmail.com
Cc: jdnelson@dyn.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: [HACKERS] [BUGS] Bug in Physical Replication Slots (at least 9.5)?
Date: Fri, 19 Jan 2018 18:24:56 +0900
Message-ID: <20180119092456.GA1169@paquier.xyz> (raw)
In-Reply-To: <20180119.105453.132600443.horiguchi.kyotaro@lab.ntt.co.jp>
References: <20180117123832.GB2416@tamriel.snowman.net>
	<20180118115827.GA12826@paquier.xyz>
	<20180118195252.hyxgkb3krcqjzfjm@alap3.anarazel.de>
	<20180119.105453.132600443.horiguchi.kyotaro@lab.ntt.co.jp>

On Fri, Jan 19, 2018 at 10:54:53AM +0900, Kyotaro HORIGUCHI wrote:
> On the other hand if one logical record must be read from single
> source, we need any means to deterrent wal-recycling on the
> primary side. Conducting that within the primary side is rejected
> by consensus.

There is this approach of extending the message protocol as well so as
the primary can retain the segments it needs to keep around...

> (There might be smarter way to do that, though.) To
> do that from the standby side, just retarding write feedbacks or
> this kind of special feedback would be needed. In any way it is
> necessary to introduce WAL-record awareness into WAL shipping
> process and it's seemingly large complexity.

Coming to logical slots, don't you need to be aware of the beginning of
the record on the primary to perform correctly decoding of tuples
through time travel? If the record is present across segments, it seems
to me that it matters. Andres knows the answer to that for sure, so I
would expect to be counter-argued in the next 12 hours or so.
--
Michael

Attachments:

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

view thread (55+ messages)  latest in thread

Message-ID: <20180119092456.GA1169@paquier.xyz>
Permalink:  ../20180119092456.GA1169@paquier.xyz/
Also on:    postgresql.org/message-id/20180119092456.GA1169@paquier.xyz

 · 

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: michael.paquier@gmail.com, horiguchi.kyotaro@lab.ntt.co.jp, andres@anarazel.de, sfrost@snowman.net, nag1010@gmail.com, jdnelson@dyn.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] [BUGS] Bug in Physical Replication Slots (at least 9.5)?
  In-Reply-To: <20180119092456.GA1169@paquier.xyz>
  References: <20180117123832.GB2416@tamriel.snowman.net> <20180118115827.GA12826@paquier.xyz> <20180118195252.hyxgkb3krcqjzfjm@alap3.anarazel.de> <20180119.105453.132600443.horiguchi.kyotaro@lab.ntt.co.jp> <20180119092456.GA1169@paquier.xyz>

* 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