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

From: shveta malik <shveta(dot)malik(at)gmail(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>
Cc: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, Zhijie Hou <houzhijie22(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-03 10:36:54
Message-ID: CAJpy0uDze9ywC1_3wTHcPkJwJBBQf1pydgDyUYktK9RSjT78yg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Dec 3, 2026 at 3:19 PM Hayato Kuroda (Fujitsu)
<kuroda(dot)hayato(at)fujitsu(dot)com> wrote:
>
> Hi,
>
> > 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.
>
> Thanks for updating the patch. I cannot find issues for now, here are some minor
> comments. It might be matter of taste, feel free to reject if you are not happy.
>
> 01.
> ```
> + clt_col = PQnfields(res) - 1;
> + ncols = clt_col - 1;
> ``
>
> I think this might not be clear, because clt_col shows the location but ncols
> means the number of columns of the result table. How about clarifying like below?
>
> ```
> /* Use the last result column for the conflict log table footer */
> clt_col = PQnfields(res) - 1;
>
> /* Exclude two columns, used for the title and footer */
> ncols = PQnfields(res) - 2;
> ```

+1, suggested one is better, else it is difficul tto understand.

I have no more comments on v3 apart from this one.

thanks
Shveta

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message ZizhuanLiu X-MAN 2026-12-03 10:48:41 Re: Optimize MCV stats for sortable types and utilize sorted-order properties
Previous Message Hayato Kuroda (Fujitsu) 2026-12-03 10:08:08 RE: Use WALReadFromBuffers in more places