Re: BUG #18840: Segmentation fault in executing select unnest(array(oidvector))

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ylshiyu(at)126(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18840: Segmentation fault in executing select unnest(array(oidvector))
Date: 2025-03-13 20:10:25
Message-ID: 2926483.1741896625@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> The crash you found is sufficient reason to back-patch 0001, even
> though it changes results in some non-crash cases. I'm less sure
> about whether to back-patch 0002. If anyone can find a crash
> case involving ARRAY[], I think we should do so.

After sleeping on it I concluded that both changes should be
back-patched: if anyone were depending on ARRAY[] over int2vector
or oidvector, you'd think they'd have noticed and reported the
broken cases by now. Hence, pushed as one patch.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kirk Parker 2025-03-13 20:52:49 CHECK that involves a function call behaves differently during bulk load?
Previous Message Tom Lane 2025-03-13 16:15:33 Re: Attribute of type record has wrong type error with MERGE ... WHEN NOT MATCHED BY SOURCE THEN DELETE