Re: Show the conflict log table in \dRs+ output

From: vignesh C <vignesh21(at)gmail(dot)com>
To: shveta malik <shveta(dot)malik(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, shveta malik <shvetamalik(at)gmail(dot)com>
Subject: Re: Show the conflict log table in \dRs+ output
Date: 2026-12-02 13:33:36
Message-ID: CALDaNm2__SoMC=Rp8UDAUFQeP9QSNbJ12XZZGHh5EqRf_t7nyg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2 Dec 2026 at 14:50, shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
>
> 1)
> The CLT name shown depends on search_path. If search_path does not
> include the pg_conflict schema, it shows:
>
> \dRs+
> ...
> Conflict log table:
> pg_conflict.pg_conflict_log_16402
>
> But if pg_conflict is added to search_path, it shows:
>
> \dRs+
> ...
> Conflict log table:
> pg_conflict_log_16402
>
> This is inconsistent with \dRp+, which always shows the schema name of
> the published tables, irrespective of search_path. Shall we build the
> name as n.nspname || '.' || c.relname (as \dRp+ does) instead of using
> subconflictlogrelid::regclass::text?

I agree with Hou-san's thoughts on this at [1]. So no changes done for this.

> 2)
> \dRs+ with no subscriptions now prints the error "Did not find any
> subscriptions.", whereas earlier it printed an empty table. That is
> okay, as it is now consistent with \dRp+. But the doc only says "an
> error is reported if no subscription matches the pattern", which IMO
> does not cover this case where we run it without a pattern. Let me
> know if I misunderstood this.

Changed the documentation to include this. This is available in the v2
version patch posted at [2].

[1] - https://www.postgresql.org/message-id/60c83ef6-d856-481e-ba01-bb497880e79b%40gmail.com
[2] - https://www.postgresql.org/message-id/CALDaNm1x5Qj_hTYAS7eVh1bTqc5nSgPbMH8%2BJCTjXu%2B_7fPWjw%40mail.gmail.com

Regards,
Vignesh

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Nidzwetzki 2026-12-02 13:46:37 Re: pg_rewind accepts a standby target that ran with wal_log_hints = off
Previous Message vignesh C 2026-12-02 13:29:08 Re: Show the conflict log table in \dRs+ output