On Mon, 13 Feb 2023 at 23:00, Alexander Lakhin <exclusion@gmail.com> wrote:
> I've encountered an issue that could have the same title but it still reproduced after the fix.
> The following query:
> SELECT array_agg(DISTINCT a ORDER BY a DESC)
> FROM (VALUES (1),(1.0),(NULL)) v(a);
Thanks for testing that. I neglected to update the logic which pfrees
the old Datum, which (as of 7da51590e) may now be NULL.
I've just pushed a fix.
David