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.