Re: array_agg(anyarray) silently produces corrupt results with parallel workers when inputs mix NULL and non-NULL array elements

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmytro Astapov <dastapov(at)gmail(dot)com>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: array_agg(anyarray) silently produces corrupt results with parallel workers when inputs mix NULL and non-NULL array elements
Date: 2026-04-06 17:16:31
Message-ID: 1443505.1775495791@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Dmytro Astapov <dastapov(at)gmail(dot)com> writes:
> On Sat, Apr 4, 2026 at 5:41 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> So I end with the attached revised patch, where I also made one
>> or two cosmetic adjustments like putting the type-comparison checks
>> next to the dimension comparisons. Look good to you?

> Looks good, thank you for improving it.

Great, pushed then. Many thanks for the bug report and fix!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Previous Message Dmytro Astapov 2026-04-06 12:04:18 Re: array_agg(anyarray) silently produces corrupt results with parallel workers when inputs mix NULL and non-NULL array elements