Re: GiST operator class for bool

Поиск
Список
Период
Сортировка
Искать
От
Tomas Vondra
Тема
Re: GiST operator class for bool
Дата
Msg-id
d28f4dd8-b1e4-fea5-a3a4-3661d73a9df8@enterprisedb.com
Ответ на
Список
Дерево обсуждения
GiST operator class for bool Emre Hasegeli <emre@hasegeli.com>
Re: GiST operator class for bool Andrey Borodin <x4mmm@yandex-team.ru>
Re: GiST operator class for bool Emre Hasegeli <emre@hasegeli.com>
Re: GiST operator class for bool Andrey Borodin <x4mmm@yandex-team.ru>
Re: GiST operator class for bool Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: GiST operator class for bool Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: GiST operator class for bool Tom Lane <tgl@sss.pgh.pa.us>
Re: GiST operator class for bool Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: GiST operator class for bool Tomas Vondra <tomas.vondra@enterprisedb.com>
Re: GiST operator class for bool Pavel Luzanov <p.luzanov@postgrespro.ru>
Re: GiST operator class for bool Tomas Vondra <tomas.vondra@enterprisedb.com>
Hi,

On 11/7/21 17:44, Tom Lane wrote:
> Tomas Vondra  writes:
>> Pushed, after adding some simple EXPLAIN to the regression test.
> 
> skink is reporting that this has some valgrind issues [1].
> I suspect sloppy conversion between bool and Datum, but
> didn't go looking.
> 

It's actually a bit worse than that :-( The opclass is somewhat confused 
about the type it should use for storage. The gbtree_ninfo struct says 
it's using gbtreekey4, the SQL script claims the params are gbtreekey8, 
and it should actually use gbtreekey2. Sorry for not noticing that.

The attached patch fixes the valgrind error for me.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Tomas Vondra
Дата:
FAQ