Re: Proposal: Conflict log history table for Logical Replication

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: Dilip Kumar <dilipbalaut(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Proposal: Conflict log history table for Logical Replication
Date: 2026-06-17 13:03:52
Message-ID: CALDaNm03HP9WE1N4jp2x=Ab-PcKJk+Sg=WX9-sE8k9G7fkFOcw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 15 Jun 2026 at 14:29, Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> Some review comments for v50-0004.
>
> ======
> src/bin/pg_dump/pg_dump.c
>
> dumpSubscription:
>
> 1.
> + * We skip the default value ('log') to match the handling of other
> + * default subscription options.
> + */
>
> There is only one "default", so I think this should say "...other
> subscription options", not "...other default subscription options".

modified

> ======
> src/include/catalog/pg_subscription.h
>
> 2.
> +#define CONFLICT_LOG_RELATION_NAME_FMT "pg_conflict_log_%u"
> +
>
> 2a.
> This format string (and first usage of it) really be in one of the
> earlier patches.

This was implemented in this patch, as prior to it there was only a
single instance of its usage.

> ~
>
> 2b.
> Add a comment to explain that the %u is the subscription oid.

Added it

> ~
>
> 2c.
> Is this the correct header file for this? IMO it is CLT specific, so
> belongs in conflict.h.

I should be kept in pg_subscription.h, as it is also required by the frontend.

These changes for the same are available in the v51 version patch posted at [1].

[1] - https://www.postgresql.org/message-id/CALDaNm2r_5hmz22Gsio%3DOABvA%3Dc_cr8avv%3Dy19Epb0vKMo%2BQJQ%40mail.gmail.com

Regards,
Vignesh

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-06-17 13:04:59 Re: DataChecksumsStateStruct cost_delay fields and locking
Previous Message vignesh C 2026-06-17 13:00:55 Re: Proposal: Conflict log history table for Logical Replication