| From: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
|---|---|
| To: | 'vignesh C' <vignesh21(at)gmail(dot)com>, 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 09:48:46 |
| Message-ID: | OS7PR01MB18317ED45A68304B16730B537F54B2@OS7PR01MB18317.jpnprd01.prod.outlook.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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;
```
02.
```
for (int i = 0; i < PQntuples(res); i++)
...
for (int j = 1; j < clt_col; j++)
```
I prefer row/col pair than i/j.
Best regards,
Hayato Kuroda
FUJITSU LIMITED
| From | Date | Subject | |
|---|---|---|---|
| Next Message | cca5507 | 2026-12-03 09:50:01 | Remove useless memory context switch in ExecHashTableCreate() |
| Previous Message | Ontowhee | 2026-12-03 08:37:47 | Re: [PATCH] Share WAL summary filtering logic |