Re: BUG #18692: Segmentation fault when extending a varchar column with a gist index with custom signal length

Alexander Korotkov <aekorotkov@gmail.com>

From: Alexander Korotkov <aekorotkov@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: nicolas.maus@bertelsmann.de, pgsql-bugs@lists.postgresql.org
Date: 2024-11-06T17:14:56Z
Lists: pgsql-bugs
On Wed, Nov 6, 2024 at 7:08 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> PG Bug reporting form <noreply@postgresql.org> writes:
> > When extending a varchar column with a gist index with a custom signal
> > length the Postgres server crashes with a segmentation fault.
>
> What this shows is that CompareOpclassOptions has never been tested
> at all except with null inputs.  It's trying to call array_eq
> without providing an FmgrInfo.

Thank you for inviting me to the thread.  I'm on and will provide a fix shortly.

------
Regards,
Alexander Korotkov
Supabase



Commits

  1. Fix arrays comparison in CompareOpclassOptions()