| From: | "Ideriha, Takeshi" <iderihatakeshi(at)gmail(dot)com> |
|---|---|
| To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Unused code in brin_minmax_multi_consistent |
| Date: | 2026-12-01 04:07:33 |
| Message-ID: | afc6425d-3f95-4aa0-ae65-e483c93b2436@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi hackers
Here is another finding while I was implementing my own version BRIN
extension.
brin_minmax_multi_consistent() has a line "attno = column->bv_attno;".
But attno is overwritten by "attno = key->sk_attno;" just after the line.
Another function such as brin_minmax_multi_add_value() has this line so
I guess it's just copy-paste mistake.
I know this is just a redundant code and not harmful but submit a patch
for correctness.
--
Regards,
Takeshi Ideriha
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-remove-unused-line-from-brin_minmax_multi_add_val.patch | text/plain | 865 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Previous Message | Xuneng Zhou | 2026-12-01 03:19:36 | Re: [PATCH v1 0/2] Preserve input sign across numeric parameter parsing |