Re: Query doesn't use index on hstore column

Поиск
Список
Период
Сортировка
От Michael Barker
Тема Re: Query doesn't use index on hstore column
Дата
Msg-id CALwNKeT5f6g+R7VNa6wx18CZVUq3c2FmWGQ8hDcq=dt8m1gUSA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Query doesn't use index on hstore column  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-performance
Well, first off, a btree index is fairly useless for this query,
because btree has no concept that the hstore has any sub-structure.
A GIN index or GIST index could work though.  Secondly, you have to
remember that indexable WHERE conditions in Postgres are *always* of
the form "WHERE indexed_column indexable_operator some_comparison_value".

And the student was enlightened....

Cheers, seeing sensible explain plans now.
 
You might care to read
http://www.postgresql.org/docs/9.4/static/indexes.html
to get a better handle on what Postgres indexes can and can't do.

Will do, thanks again.

Mike. 

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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Yet another abort-early plan disaster on 9.3
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: intel s3500 -- hot stuff