pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Cc: michael.paquier@gmail.com
Cc: nag1010@gmail.com
Cc: jdnelson@dyn.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: [BUGS] Bug in Physical Replication Slots (at least 9.5)?
Date: Wed, 6 Sep 2017 12:23:53 -0700
Message-ID: <20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de> (raw)
In-Reply-To: <20170906.173602.195129146.horiguchi.kyotaro@lab.ntt.co.jp>
References: <20170904.155151.168399829.horiguchi.kyotaro@lab.ntt.co.jp>
	<20170904070434.fngklyhuqg5lflcl@alap3.anarazel.de>
	<CAB7nPqSPf0qkq=DhSO-tAM9++LSA2aEYSVJ3oY_EdUdb=jKi1w@mail.gmail.com>
	<20170906.173602.195129146.horiguchi.kyotaro@lab.ntt.co.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 2017-09-06 17:36:02 +0900, Kyotaro HORIGUCHI wrote:
> Hi,
> 
> At Mon, 4 Sep 2017 17:17:19 +0900, Michael Paquier <michael.paquier@gmail.com> wrote in <CAB7nPqSPf0qkq=DhSO-tAM9++LSA2aEYSVJ3oY_EdUdb=jKi1w@mail.gmail.com>
> > On Mon, Sep 4, 2017 at 4:04 PM, Andres Freund <andres@anarazel.de> 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



view thread (55+ messages)  latest in thread

Message-ID: <20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de>
Permalink:  ../20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170906192353.ufp2dq7wm5fd6qa7@alap3.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, horiguchi.kyotaro@lab.ntt.co.jp, 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)?
  In-Reply-To: <20170906192353.ufp2dq7wm5fd6qa7@alap3.anarazel.de>
  References: <20170904.155151.168399829.horiguchi.kyotaro@lab.ntt.co.jp> <20170904070434.fngklyhuqg5lflcl@alap3.anarazel.de> <CAB7nPqSPf0qkq=DhSO-tAM9++LSA2aEYSVJ3oY_EdUdb=jKi1w@mail.gmail.com> <20170906.173602.195129146.horiguchi.kyotaro@lab.ntt.co.jp> <20170906192353.ufp2dq7wm5fd6qa7@alap3.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