Re: BUG #19370: PG18 returns incorrect array slice results when slice bounds depend on another array expression
Andres Freund <andres@anarazel.de>
From: Andres Freund <andres@anarazel.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David Rowley <dgrowleyml@gmail.com>, redraiment@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-01-07T01:04:15Z
Lists: pgsql-bugs
Hi, On 2026-01-06 13:35:23 -0500, Tom Lane wrote: > Andres Freund <andres@anarazel.de> writes: > > On 2026-01-06 11:40:01 -0500, Tom Lane wrote: > >> We could either generalize EEOP_PARAM_SET to include an explicit > >> specification of the source value's address > > > That's pretty trivial, see attached. I don't quite understand why I didn't go > > that way immediately... > > Yeah, that looks about right. Pushed, together with a narrowed down testcase. Thanks for the report! Without a reproducer this would have been much much harder (*). Greetings, Andres Freund * although I do wish we had something like cvise for sql...
Commits
-
Fix buggy interaction between array subscripts and subplan params
- bdc5dedfcaa5 18.2 landed
- 75609fded35e 19 (unreleased) landed