pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Cc: noah@leadboat.com
Cc: masao.fujii@oss.nttdata.com
Cc: pgsql-hackers@postgresql.org
Subject: Re: 001_rep_changes.pl stalls
Date: Fri, 17 Apr 2020 09:59:25 -0400
Message-ID: <20278.1587131965@sss.pgh.pa.us> (raw)
In-Reply-To: <20200417.170015.1981391722024305719.horikyota.ntt@gmail.com>
References: <20200414013849.GA886648@rfd.leadboat.com>
	<8807.1586828716@sss.pgh.pa.us>
	<20200417054146.GA1061007@rfd.leadboat.com>
	<20200417.170015.1981391722024305719.horikyota.ntt@gmail.com>

Kyotaro Horiguchi <horikyota.ntt@gmail.com> writes:
> At Thu, 16 Apr 2020 22:41:46 -0700, Noah Misch <noah@leadboat.com> wrote in 
>> I'm favoring (1).  Other preferences?

> Starting from the current shape, I think 1 is preferable, since that
> waiting logic is no longer shared between logical and physical
> replications.  But I'm not sure I like calling WalSndWaitForWal()
> (maybe with previous location + 1?), because the function seems to do
> too-much.

I'm far from an expert on this code, but it does look like there's
a lot of stuff in WalSndWaitForWal that is specific to logical rep,
so I'm not sure that (1) is workable.  At the very least there'd
have to be a bunch more conditionals in that function than there are
now.  In the end, a separate copy for physical rep might be better.

(BTW, I think this code is in desperate need of a renaming
campaign to make it clearer which functions are for logical rep,
physical rep, or both.)

			regards, tom lane





view thread (17+ messages)  latest in thread

Message-ID: <20278.1587131965@sss.pgh.pa.us>
Permalink:  ../20278.1587131965@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20278.1587131965@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, horikyota.ntt@gmail.com, noah@leadboat.com, masao.fujii@oss.nttdata.com
  Subject: Re: 001_rep_changes.pl stalls
  In-Reply-To: <20278.1587131965@sss.pgh.pa.us>

* 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