Re: Pg17 Crash in Planning (Arrays + Casting + UDF)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nathan Bossart <nathandbossart(at)gmail(dot)com>
Cc: Paul Ramsey <pramsey(at)cleverelephant(dot)ca>, Pgsql Hackers <pgsql-hackers(at)postgresql(dot)org>, Regina Obe <lr(at)pcorp(dot)us>, Fredrik Widlert <fredrik(dot)widlert(at)digpro(dot)se>
Subject: Re: Pg17 Crash in Planning (Arrays + Casting + UDF)
Date: 2024-10-09 20:51:47
Message-ID: 2509780.1728507107@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Nathan Bossart <nathandbossart(at)gmail(dot)com> writes:
> Do you mean something like this?

> - else if (arrayexpr)
> + else if (arrayexpr && root != NULL)

> That'd at least be no worse than how it worked before
> estimate_array_length() tried to use statistics, so that seems reasonable
> to me.

Yeah, exactly, just fall back to the old behavior if no root.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Marcos Pegoraro 2024-10-09 21:20:22 Re: Mathematical Functions and Operators
Previous Message Nathan Bossart 2024-10-09 20:46:03 Re: Pg17 Crash in Planning (Arrays + Casting + UDF)