| From: | Haibo Yan <tristan(dot)yim(at)gmail(dot)com> |
|---|---|
| To: | shihao zhong <zhong950419(at)gmail(dot)com> |
| Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Richard Guo <guofenglinux(at)gmail(dot)com> |
| Subject: | Re: [PATCH] Fix grouping-set nulling of variable-free grouping expressions |
| Date: | 2026-10-12 18:28:16 |
| Message-ID: | CABXr29F4_BgH15NKKc3HjZ9xJXE8GNr77n_896bJxPqpAjL_kA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Sun, Oct 11, 2026 at 7:11 PM shihao zhong <zhong950419(at)gmail(dot)com> wrote:
>
>
> Hi Haibo,
>
> I reviewed v1 and it looks correct to me.
>
> Both of your queries give the right rows on master and 19, and the
> new tests fail without the fix. I asked Claude to try about 80 more
> queries, in HAVING, ORDER BY, window functions, sublinks and LATERAL.
> All give the rows I expect.
>
> The code applies to 18 too, only two hunks of expected output differ.
>
> The file sent as v2 is not the same patch though. It does not apply
> to master, its test hunks need a gs_users test that is not in the
> tree. The code is different, the NOT NULL test is gone, and it has no
> Reported-by line. Was it the wrong file?
>
> The first query is right on 18 and wrong on 19, so I hope this can go
> in before 19 is out.
>
> Thanks,
> Shihao
Hi Shihao,
Thanks for reviewing v1 and for the additional testing.
You're right. I accidentally attached an earlier experimental patch
instead of the correct v2. Sorry for the confusion.
Attached is the corrected v3. The implementation and regression tests
are identical to v1, with no functional changes. The patch applies
cleanly to current master and REL_19_STABLE.
I've also added the following trailer to the commit message:
Reported-by: Shihao Zhong <zhong950419(at)gmail(dot)com>
Thanks,
Haibo
| Attachment | Content-Type | Size |
|---|---|---|
| v3-0001-Fix-grouping-set-nulling-of-variable-free-grouping-exprs.patch | application/octet-stream | 11.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexandre Felipe | 2026-10-12 18:40:47 | Re: Restructured Shared Buffer Hash Table |
| Previous Message | Matthias van de Meent | 2026-10-12 18:21:55 | Re: Reducing relcache memory usage: deduping index shapes |