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

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: vignesh C <vignesh21(at)gmail(dot)com>
Cc: Zhijie Hou <houzhijie22(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-02 21:28:30
Message-ID: CANhcyEVwFJ3eGQZEpPBEdeHaeMTc7_JCHxFuPjUxRLHqWN=--Q@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2 Dec 2026 at 18:59, vignesh C <vignesh21(at)gmail(dot)com> wrote:
> The attached v2 version patch has the changes for the same. This
> version also fixes Shveta's alignment issue from [1].
> [1] - https://www.postgresql.org/message-id/CAJpy0uB_%3Df6MCg9vU4f6QGeHq7JLbLdDKoGYgktXqqr9Ro29WQ%40mail.gmail.com
>

Hi Vignesh,

I reviewed the v2 patch and have a comment:
With patch dRs+ no longer honors '\pset numericlocale'. Suppose
subscription is created with 'max_retention_duration = 1000' and in
the psql session '\pset numericlocale' is executed.

In HEAD, \dRsx+ display 'Max retention duration | 1,000'
but with patch, \dRs+ displays 'Max retention duration | 1000'

In printQuery function we have:
```
if (cont.aligns[c] == 'r' && opt->topt.numericLocale)
{
cell = format_numeric_locale(cell);
mustfree = true;
}
```
Maybe in the patch we add a similar check in 'describeSubscriptions'?

Thanks,
Shlok Kyal

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Prashant Chinnam 2026-12-02 21:42:02 Re: [PATCH] pgcrypto: Fix sha-crypt rounds= values that do not fit in int (BUG #19743)
Previous Message Alain LESAGE 2026-12-02 21:25:59 Re: Speed up hash join builds by linking tuples into buckets in groups