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

From: shveta malik <shveta(dot)malik(at)gmail(dot)com>
To: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
Cc: Peter Smith <smithpb2250(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, 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-04 06:35:24
Message-ID: CAJpy0uBvnQ-UBMd0g_Duv8rFfG45T6O_3+pz2nLL7Yq_fzb6=g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Dec 4, 2026 at 11:58 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> On Fri, Dec 4, 2026 at 9:28 AM shveta malik <shveta(dot)malik(at)gmail(dot)com> wrote:
> >
> > On Fri, Dec 4, 2026 at 7:19 AM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
> > >
> > > Yes, a column is OK in lieue of a footer. Already, psql treats the
> > > same kind of property differently in a list and in a single-object
> > > display: e.g. for tables, "Access method" is a column in the "\d+"
> > > list but a footer for "\d+ t1" (where a pattern is given).
> > >
> > > Since the CLT name only has a value when the destination is 'table' or
> > > 'all' (neither is the default), one idea might be to fold it into the
> > > existing destination column instead of adding another mostly-empty
> > > column:
> > >
> > > Conflict log destination
> > > -----------------------------------------
> > > log
> > > table (pg_conflict.pg_conflict_log_16406)
> > > all (pg_conflict.pg_conflict_log_16406)
> > >
> >
> > That's a good suggestion, but I'm slightly inclined towards a separate
> > column (if not a footer). Keeping one piece of information per column
> > makes it easier for scripts and monitoring tools to parse, e.g. they
> > can compare the destination with table directly instead of stripping
> > the table name first.
> >
>
> Yes, it can be easier for scripts but we need to be careful about the
> number of columns being added to \dRs+ meta-command. I think it is
> already on the higher side as compared to other meta commands. It is
> not clear to me how much value we add by displaying the information
> that is easily queryable from pg_subscription (For Example, select
> subname, subconflictlogdest, subconflictlogrelid::regclass from
> pg_subscription;) to display in this meta-command. I know we can argue
> about the existing columns in the same way but I feel let's not add
> more unless we see a value. I think for the first version we can
> simply document how to get CLT info from pg_subscription as I showed
> and then later once the feature is being used widely and we have some
> feedback from the field, we can anyway extend the meta-command (\dRs+)
> to display the additional information.

Okay, works for me.

thanks
Shveta

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Shlok Kyal 2026-12-04 06:38:34 Re: DROP SUBSCRIPTION deadlock with ALTER SUBSCRIPTION OWNER TO
Previous Message Kirill Reshke 2026-12-04 06:29:27 Re: Fix btree_gist index corruption on bit and varbit types