| From: | shveta malik <shveta(dot)malik(at)gmail(dot)com> |
|---|---|
| To: | Zhijie Hou <houzhijie22(at)gmail(dot)com> |
| Cc: | vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Show the conflict log table in \dRs+ output |
| Date: | 2026-12-03 04:13:06 |
| Message-ID: | CAJpy0uCR3yYO3B1nH20gT6PpUe+PX9y==n__iruZJnfFpwmhAA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Wed, Dec 2, 2026 at 3:28 PM Zhijie Hou <houzhijie22(at)gmail(dot)com> wrote:
>
> Hi,
>
> On Wed, Dec 2, 2026 at 05:20 PM shveta malik 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 also noticed this, but I feel the current behavior is fine as
> pre-existing \d+ footers (such as "Inherits:", "Partitions:", and
> "Partition of:") also format relation OIDs via regclass without outer
> quotes, omitting the schema only when the table resolves unambiguously
> in the current search_path (and pg_conflict is not in the default
> search_path anyway).
>
> Since the main purpose of showing the conflict log table is so users can
> query it directly, unquoted regclass output
> (pg_conflict.pg_conflict_log_<subid>) seems convenient to copy-paste
> into SELECT * FROM ..., whereas "\"pg_conflict.
>
Okay, makes sense.
thanks
Shveta
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shveta malik | 2026-12-03 04:26:33 | Re: Show the conflict log table in \dRs+ output |
| Previous Message | Dilip Kumar | 2026-12-03 04:12:24 | Re: Show the conflict log table in \dRs+ output |