Re: BUG #17847: Unaligned memory access in ltree_gist

Поиск
Список
Период
Сортировка
От Alexander Lakhin
Тема Re: BUG #17847: Unaligned memory access in ltree_gist
Дата
Msg-id f9591c60-b241-5f03-711d-171ded31650a@gmail.com
обсуждение исходный текст
Ответ на Re: BUG #17847: Unaligned memory access in ltree_gist  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #17847: Unaligned memory access in ltree_gist  (Alexander Korotkov <aekorotkov@gmail.com>)
Список pgsql-bugs
16.03.2023 22:35, Tom Lane wrote:
I wonder which other opclasses besides ltree have the same issue.

I found no other similar places: siglen is also accepted by opclasses
gist__intbig_ops, gist_hstore_ops, gist_trgm_ops, tsvector_ops,
which implementations use functions
_intbig_alloc, ghstore_alloc, gtrgm_alloc, gtsvector_alloc,
and none of them adds siglen to a pointer.
Quick testing confirms that.

(gist__ltree_ops uses ltree_gist_alloc(), but the problematic branch
"if (left) ..." not reached for gist__ltree_ops)

Best regards,
Alexander

В списке pgsql-bugs по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: BUG #17844: Memory consumption for memoize node
Следующее
От: PG Bug reporting form
Дата:
Сообщение: BUG #17853: COLLATE does not work with numeric column references in ORDER BY