intarray index vs gin index

Поиск
Список
Период
Сортировка
Искать

intarray index vs gin index

От:
Marek Lewczuk <newsy@lewczuk.com>
Дата:
Hello,
I'm trying to update my database to 8.2 version and have some problems 
with intarray module. As far I know PG 8.2 contains many features that 
are contained within intarray - indexing array fields (using gin), 
operators etc. Currently (in PostgreSQL 8.1) I'm using intarray not only 
for indexing (but this is the main feature) but also I'm using functions 
(like count, sort...) and operators (+, -) that are provided by 
intarray. My question is whether I still should use intarray for 
indexing (if yes then either I should use GIST or GIN) or maybe GIN 
index is faster than GIST+intarray / GIN+intarray.

Thanks in advance for reply.
ML


Re: intarray index vs gin index

От:
Teodor Sigaev <teodor@sigaev.ru>
Дата:
> intarray. My question is whether I still should use intarray for 
> indexing (if yes then either I should use GIST or GIN) or maybe GIN 
> index is faster than GIST+intarray / GIN+intarray.
Yes, with intarray you can use GiST/GIN indexes which you wish

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/
FAQ