| From: | Zhijie Hou <houzhijie22(at)gmail(dot)com> |
|---|---|
| To: | shveta malik <shveta(dot)malik(at)gmail(dot)com>, vignesh C <vignesh21(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 09:58:22 |
| Message-ID: | 60c83ef6-d856-481e-ba01-bb497880e79b@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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.
--
Best Regards,
Zhijie Hou
| From | Date | Subject | |
|---|---|---|---|
| Next Message | John Naylor | 2026-12-02 10:04:53 | memory leak in bounded sorts |
| Previous Message | Amit Kapila | 2026-12-02 09:51:21 | Re: Preserve conflict log table during upgrade |