Re: BUG #19370: PG18 returns incorrect array slice results when slice bounds depend on another array expression

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: redraiment(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, Andres Freund <andres(at)anarazel(dot)de>
Subject: Re: BUG #19370: PG18 returns incorrect array slice results when slice bounds depend on another array expression
Date: 2026-01-06 09:26:19
Message-ID: CAApHDvpVwUTNEQKkBVD9CQCq6N+YW7hpH6C3ZtKJQnGX4XAtpA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, 6 Jan 2026 at 21:22, PG Bug reporting form
<noreply(at)postgresql(dot)org> wrote:
> I have encountered a behavioral regression in PostgreSQL 18 related to array
> slicing when the slice start index is computed from another array expression
> in the same SELECT list.
>
> The attached SQL query (included below in full for reproducibility)

Many thanks for the report and reproducer. I've not looked as to why,
but this seems to be caused by a7f107df2. I've included Andres.

David

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andrii 2026-01-06 13:58:52 Bug Report: PostgreSQL 16 crashes on ALTER USER CURRENT_USER WITH PASSWORD
Previous Message PG Bug reporting form 2026-01-06 05:57:10 BUG #19371: programı yüklerken hata veriyor