| From: | Marian Muller Rebeyrol <marian(dot)muller(at)serli(dot)com> |
|---|---|
| To: | Richard Guo <guofenglinux(at)gmail(dot)com> |
| Cc: | Tender Wang <tndrwang(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19353: Error XX000 if referencing expanded array in grouping set: variable not found in subplan target list |
| Date: | 2026-01-05 08:31:13 |
| Message-ID: | CAPXdwCyBn_DMSgv=Jpo=0DzZ=eHUZ3i1Po7KnSt0tF6nK7ZSug@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Thanks for the incredibly efficient process of reporting and blazing-fast
fix!
I can also confirm this fixes my actual business use-case.
--
Marian Muller Rebeyrol
SERLI
On Thu, Dec 25, 2025 at 4:58 AM Richard Guo <guofenglinux(at)gmail(dot)com> wrote:
> On Wed, Dec 24, 2025 at 11:40 AM Tender Wang <tndrwang(at)gmail(dot)com> wrote:
> > Richard Guo <guofenglinux(at)gmail(dot)com> 于2025年12月24日周三 10:15写道:
> >> The patch also introduces a new extern function that calls the
> >> workhorse with the grouping flag enabled. Additionally, it adds two
> >> new fields to struct split_pathtarget_context, but that struct is
> >> defined entirely within the .c file.
>
> > It is safe if the struct is only used in a .c file. It would be better
> to add a note in the comment for the struct to notice.
>
> Yeah, a struct defined in .c file should be safe to modify. My main
> concern was adding a new extern function to back-branches, as it can
> break forward compatibility (like an extension built on 18.2 not
> working on 18.1).
>
> After a quick discussion on Discord, I believe it is safe to proceed.
> Forward compatibility issues can only happen if a new extern function
> is added to core and meanwhile called by an extension, which is quite
> rare.
>
> Thus, I have pushed and back-patched this fix.
>
> Thank you, Marian, for the report. It was a good find. The fix will
> be available in 18.2, which is scheduled for release in February.
>
> - Richard
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | PG Bug reporting form | 2026-01-06 05:32:26 | BUG #19370: PG18 returns incorrect array slice results when slice bounds depend on another array expression |
| Previous Message | PG Bug reporting form | 2026-01-02 22:46:17 | BUG #19369: Not documented that io_uring on kernel versions between 5.1 and below 5.6 does not work |