Re: [PERFORM] Query doesn't use index on hstore column

2014-12-05 Thread Michael Barker
> > 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 i

Re: [PERFORM] Query doesn't use index on hstore column

2014-12-04 Thread Tom Lane
Michael Barker writes: > I'm currently experimenting with hstore on Posgtres 9.4rc1. I've created a > table with an hstore column, with and index on that column (tried both gin > and btree indexes) and the explain plan says that the index is never used > for the lookup and falls to a sequential s

Re: [PERFORM] Query doesn't use index on hstore column

2014-12-04 Thread k...@rice.edu
On Fri, Dec 05, 2014 at 09:42:20AM +1300, Michael Barker wrote: > 1) Created table with hstore column and btree index. > > barkerm=# \d audit >Table "public.audit" > Column |Type | > Modifiers > ---+--

[PERFORM] Query doesn't use index on hstore column

2014-12-04 Thread Michael Barker
Hi, Apologies if this is the wrong list for this time of query (first time posting). I'm currently experimenting with hstore on Posgtres 9.4rc1. I've created a table with an hstore column, with and index on that column (tried both gin and btree indexes) and the explain plan says that the index i