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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: ylshiyu@126.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2025-03-13T20:10:25Z
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



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Fix ARRAY_SUBLINK and ARRAY[] for int2vector and oidvector input.