From: | Richard Guo <guofenglinux(at)gmail(dot)com> |
---|---|
To: | David Rowley <dgrowleyml(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Wrong results with grouping sets |
Date: | 2024-10-25 01:09:11 |
Message-ID: | CAMbWs48f111ufLcTwtc22UGwFs8BLSfPtEdiVi+pYS9RzjxA-w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 10, 2024 at 6:51 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> On Thu, Oct 10, 2024 at 4:06 PM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> > While we can fix this issue by propagating the hasGroupRTE mark from
> > the EXISTS subquery to the parent, a better fix might be to remove the
> > subquery's RTE_GROUP entry, since we have dropped the subquery's
> > groupClause before the pull-up (see simplify_EXISTS_query).
>
> Here is the patch.
I've pushed this patch with minor tweaks. Thanks again for the
report!
Thanks
Richard
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2024-10-25 01:29:14 | Re: Changing the default random_page_cost value |
Previous Message | Melanie Plageman | 2024-10-25 00:33:29 | Docs Build in CI failing with "failed to load external entity" |