pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Kapila <amit.kapila16@gmail.com>
Cc: Peter Smith <smithpb2250@gmail.com>
Cc: Amit Kapila <akapila@postgresql.org>
Cc: pgsql-committers <pgsql-committers@lists.postgresql.org>
Subject: Re: pgsql: Allow multiple xacts during table sync in logical replication.
Date: Fri, 12 Feb 2021 23:19:15 -0500
Message-ID: <1625664.1613189955@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA4eK1JxtQQosXyc0Os1SBUZU9BEECKsDmnXKEWbmMRL7OEwxw@mail.gmail.com>
References: <E1lAO3w-0005Je-0p@gemulon.postgresql.org>
	<CAA4eK1+caxb7jD=OWkLEEHs-AMAHQef3QD_pkj2=nZkOX-ziUA@mail.gmail.com>
	<1519064.1613099867@sss.pgh.pa.us>
	<CAA4eK1+ATy4ES85Ku83MMjZBGza_9OU7w+FV+5m+GxKFCHLkrA@mail.gmail.com>
	<CAA4eK1+zW+XVi67+hiFQ9P2Drh1GEg8+juXNaYDtKWCPx0vw6A@mail.gmail.com>
	<1610789.1613170207@sss.pgh.pa.us>
	<CAA4eK1Km3NsEK-6rS+H8JBcY15AhOG3rYuSGZ5GZphZfoSju1A@mail.gmail.com>
	<CAA4eK1JxtQQosXyc0Os1SBUZU9BEECKsDmnXKEWbmMRL7OEwxw@mail.gmail.com>

Amit Kapila <amit.kapila16@gmail.com> writes:
> Attached should fix the reported warnings but as I am not getting
> those warnings on my system so can't confirm but otherwise, the patch
> works as expected. I am planning to push this unless you or Peter have
> any comments.

Personally I'd get rid of the option for ReplicationSlotNameForTablesync
to allocate the result buffer.  There's only one caller using that,
so it's saving no code to have ReplicationSlotNameForTablesync do the
alloc rather than that one caller; and it seems mighty ugly/nonorthogonal
to have effectively two different APIs in one function.

			regards, tom lane





view thread (13+ messages)  latest in thread

Message-ID: <1625664.1613189955@sss.pgh.pa.us>
Permalink:  ../1625664.1613189955@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1625664.1613189955@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 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-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, amit.kapila16@gmail.com, smithpb2250@gmail.com, akapila@postgresql.org
  Subject: Re: pgsql: Allow multiple xacts during table sync in logical replication.
  In-Reply-To: <1625664.1613189955@sss.pgh.pa.us>
  References: <E1lAO3w-0005Je-0p@gemulon.postgresql.org> <CAA4eK1+caxb7jD=OWkLEEHs-AMAHQef3QD_pkj2=nZkOX-ziUA@mail.gmail.com> <1519064.1613099867@sss.pgh.pa.us> <CAA4eK1+ATy4ES85Ku83MMjZBGza_9OU7w+FV+5m+GxKFCHLkrA@mail.gmail.com> <CAA4eK1+zW+XVi67+hiFQ9P2Drh1GEg8+juXNaYDtKWCPx0vw6A@mail.gmail.com> <1610789.1613170207@sss.pgh.pa.us> <CAA4eK1Km3NsEK-6rS+H8JBcY15AhOG3rYuSGZ5GZphZfoSju1A@mail.gmail.com> <CAA4eK1JxtQQosXyc0Os1SBUZU9BEECKsDmnXKEWbmMRL7OEwxw@mail.gmail.com> <1625664.1613189955@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