Show the conflict log table in \dRs+ output

From: vignesh C <vignesh21(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Show the conflict log table in \dRs+ output
Date: 2026-12-02 06:45:52
Message-ID: CALDaNm18vRLzXTe1yj=aCn2fW6_ZpX2jxN=LmbF+4a9t6Ga0GQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Attached is a patch that makes \dRs+ show the conflict log table of a
subscription as a footer, when conflict_log_destination is set to
table or all. The name is displayed because the conflict log table is
a relation that users query directly for diagnostic purposes, making
it useful to have its name readily visible. It is displayed as a
footer, following the style of existing \dRp+ footers (for example,
"Tables from schemas:"). To accommodate this, \dRs+ now displays each
subscription in a separate table, with the subscription name as its
title. The output of \dRs without + remains unchanged. The footer is
titled "Conflict log table:". This approach follows the discussion at
[1].

This is the same patch as v97 at [2], except for one new test to
verify the CLT is included as a subscription footer.

[1] https://www.postgresql.org/message-id/CAA4eK1KdKqKkaTqcj3in6ehD_hg6oOaCF_-JsVfd8N6nS8oV9g%40mail.gmail.com
[2] https://www.postgresql.org/message-id/1257417f-cc58-4039-b8a9-498ff361ebf1%40gmail.com

Regards,
Vignesh

Attachment Content-Type Size
0001-Add-conflict-log-table-information-to-describe-subsc.patch application/octet-stream 81.8 KB

Browse pgsql-hackers by date

  From Date Subject
Previous Message Julien Rouhaud 2026-12-02 06:41:51 Missing CFI() in SplitIdentifierString