Re: BUG #17847: Unaligned memory access in ltree_gist

Alexander Korotkov <aekorotkov@gmail.com>

From: Alexander Korotkov <aekorotkov@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pavel Borisov <pashkin.elfe@gmail.com>, Alexander Lakhin <exclusion@gmail.com>, pgsql-bugs@lists.postgresql.org
Date: 2023-04-19T16:59:34Z
Lists: pgsql-bugs

Attachments

On Wed, Apr 19, 2023 at 7:47 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alexander Korotkov <aekorotkov@gmail.com> writes:
> > [ v4 patches ]
>
> I think you forgot to adjust the expected output in ltree.out.
> LGTM otherwise.  I agree with back-patching.

Thank you, Tom.  The corrected version is attached.
I've registered it on commitfest to make it pass
commitfest.cputube.org.  I'm going to push it once it passes.

------
Regards,
Alexander Korotkov

Commits

  1. Validate ltree siglen GiST option to be int-aligned

  2. Fix custom validators call in build_local_reloptions()