Re: Review: B-Tree emulation for GIN

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Review: B-Tree emulation for GIN
Дата
Msg-id 1232345476.7281.89.camel@jdavis
обсуждение исходный текст
Ответ на Re: Review: B-Tree emulation for GIN  (Teodor Sigaev <teodor@sigaev.ru>)
Ответы Re: Review: B-Tree emulation for GIN  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Review: B-Tree emulation for GIN  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, 2009-01-16 at 17:42 +0300, Teodor Sigaev wrote:
> > Unfortunately, that means numeric is not supportable for btree-gin
> > because there is no left-most value from which to start the scan. Do you
> > see an easy workaround to support numeric?
> Hmm, let we use minimal varlena struct (with size equal to VARHDRSZ) as 
> left-most (and fake) value. It is never used for any actual argument except 
> compare function, so, new compare function is provided. New version of patch is 
> attached and it based on on your patch (btree-gin.20090111.patch.gz).
> 

Looks good to me. I updated the CommitFest wiki to point to this patch.

I like the fact that this patch does not modify the numeric ADT. It
still relies on the fact that the numeric type will never make use of
the minimal varlena struct, however. I bring this up in case someone
sees it as a problem.

Thanks,Jeff Davis



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: join removal
Следующее
От: James Mansion
Дата:
Сообщение: Re: libpq WSACleanup is not needed