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

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Shlok Kyal <shlok(dot)kyal(dot)oss(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-03 06:04:06
Message-ID: CALDaNm1LQEH+mR78uG32XfdaQWWjHkeLBP04iaWnruCFJ6Ztuw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 3 Dec 2026 at 02:58, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com> wrote:
>
> 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 for reporting this issue, this is addressed in the v3 version
patch attached.
Apart from this, Dilip's comments from [1] and [2] have also been
handled in this.

[1] - https://www.postgresql.org/message-id/CAFiTN-unBy9F9HfVW-GySMAOd%2BvCiJuvw1SGoeyfDKZj6%2ByP5w%40mail.gmail.com
[2] - https://www.postgresql.org/message-id/CAFiTN-vO9JwrsmKHQsqDS8TZJ5HY0pViR%2BzqyeKpH4Vhse7YGQ%40mail.gmail.com

Regards,
Vignesh

Attachment Content-Type Size
v3-0001-Add-conflict-log-table-information-to-describe-su.patch application/octet-stream 72.6 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rahila Syed 2026-12-03 06:04:15 Re: Preserve statistics targets with ALTER TABLE ALTER COLUMN TYPE
Previous Message shveta malik 2026-12-03 05:59:28 Re: DOC: Minor updates for logical replication conflicts