Re: pgsql: Allow multiple xacts during table sync in logical replication. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Allow multiple xacts during table sync in logical replication.
Date
Msg-id 1625664.1613189955@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Allow multiple xacts during table sync in logical replication.  (Amit Kapila <amit.kapila16@gmail.com>)
Responses Re: pgsql: Allow multiple xacts during table sync in logical replication.  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-committers
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



pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: pgsql: Allow multiple xacts during table sync in logical replication.
Next
From: Amit Kapila
Date:
Subject: Re: pgsql: Allow multiple xacts during table sync in logical replication.