[PATCH] proposal to surface index used by replica identity

Started by Peter Travers6 months ago3 messageshackers

Thread notes

1 note#feature#minor#enhancement
hackorum-bot#feature#minor#enhancement
hackorum-bot
2 days ago

@global #feature #minor #enhancement

#feature#minor#enhancement
Jump to latest
#1Peter Travers
traverspw@gmail.com

Hi,

We are building internal CDC tooling and have found it challenging to
identify which index is used as the replica identity for a publication. I
propose adding two new columns, replident and replidentidx, to the
pg_publication_tables catalog view so users can easily see this
configuration.

I have attached a patch with the implementation and updated regression
tests. Please let me know if you feel this is a valuable addition or if you
have any concerns with this approach.

Thanks,
Peter Travers

Engineer
linear.app

Attachments:

t248541_1
replica_identity_enhancements.patchtext/x-patch; charset=US-ASCII; name=replica_identity_enhancements.patchDownload+302-16
#2Ashutosh Bapat
ashutosh.bapat.oss@gmail.com
In reply to: Peter Travers (#1)
Re: [PATCH] proposal to surface index used by replica identity

Hi Peter,

On Mon, Jun 15, 2026 at 2:50 AM Peter Travers <traverspw@gmail.com> wrote:

Hi,

We are building internal CDC tooling and have found it challenging to identify which index is used as the replica identity for a publication. I propose adding two new columns, replident and replidentidx, to the pg_publication_tables catalog view so users can easily see this configuration.

I have attached a patch with the implementation and updated regression tests. Please let me know if you feel this is a valuable addition or if you have any concerns with this approach.

I had proposed something closely related to this in
/messages/by-id/CAExHW5sSmbnFCiMX=smSQSdaxkWPvZbMYaZq2bSE7+SD5wSWOA@mail.gmail.com.
We are discussing possible options when the publishing via root. Maybe
you could add your proposal to that thread and also help us take the
discussion forward there.

--
Best Wishes,
Ashutosh Bapat

#3Peter Travers
traverspw@gmail.com
In reply to: Ashutosh Bapat (#2)
Re: [PATCH] proposal to surface index used by replica identity

Hey Ashutosh,

Good catch, I missed that thread. I'll catch-up and see if I have anything
to add

Cheers,

Peter

On Mon, Jun 15, 2026, 06:47 Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
wrote:

Show quoted text

Hi Peter,

On Mon, Jun 15, 2026 at 2:50 AM Peter Travers <traverspw@gmail.com> wrote:

Hi,

We are building internal CDC tooling and have found it challenging to

identify which index is used as the replica identity for a publication. I
propose adding two new columns, replident and replidentidx, to the
pg_publication_tables catalog view so users can easily see this
configuration.

I have attached a patch with the implementation and updated regression

tests. Please let me know if you feel this is a valuable addition or if you
have any concerns with this approach.

I had proposed something closely related to this in

/messages/by-id/CAExHW5sSmbnFCiMX=smSQSdaxkWPvZbMYaZq2bSE7+SD5wSWOA@mail.gmail.com
.
We are discussing possible options when the publishing via root. Maybe
you could add your proposal to that thread and also help us take the
discussion forward there.

--
Best Wishes,
Ashutosh Bapat