Re: question about hstore and indexes

Поиск
Список
Период
Сортировка
От Matteo Beccati
Тема Re: question about hstore and indexes
Дата
Msg-id 5245368F.4040209@beccati.com
обсуждение исходный текст
Ответ на question about hstore and indexes  (Andreas Kretschmer <akretschmer@spamfence.net>)
Ответы Re: question about hstore and indexes  (Andreas Kretschmer <akretschmer@spamfence.net>)
Список pgsql-general
Hi Andreas,

On 27/09/2013 09:24, Andreas Kretschmer wrote:
> This query can't use the index:
>
> test=*# explain select * from my_hstore where werte->'key1' = 'val1';
>                                   QUERY PLAN
> ------------------------------------------------------------------------------
>  Seq Scan on my_hstore  (cost=10000000000.00..10000000001.06 rows=1 width=36)
>    Filter: ((werte -> 'key1'::text) = 'val1'::text)
> (2 rows)

According to the docs:

hstore has GiST and GIN index support for the @>, ?, ?& and ?| operators

http://www.postgresql.org/docs/9.3/static/hstore.html


Cheers
--
Matteo Beccati

Development & Consulting - http://www.beccati.com/


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

Предыдущее
От: Andreas Kretschmer
Дата:
Сообщение: question about hstore and indexes
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: question about hstore and indexes