Re: Multicolumn index including tsvector. - Mailing list pgsql-general

From Tom Lane
Subject Re: Multicolumn index including tsvector.
Date
Msg-id 28097.1259021555@sss.pgh.pa.us
Whole thread Raw
In response to Multicolumn index including tsvector.  (Kris Gale <krisgale@gmail.com>)
Responses Re: Multicolumn index including tsvector.
List pgsql-general
Kris Gale <krisgale@gmail.com> writes:
> So what I'm expecting here is that it'll be able to use one of those
> composite indexes to satisfy both the user_id and the vectors constraints.
> That doesn't seem to be the case, based on this query plan:

> explain analyze select body from example where user_id=1 and vectors @@
> to_tsquery('simple', 'when') limit 10;

Try coercing the '1' to a bigint.  I don't believe the btree_gist
opclasses have any support for cross-type operators.

            regards, tom lane

pgsql-general by date:

Previous
From: Kris Gale
Date:
Subject: Multicolumn index including tsvector.
Next
From: Kris Gale
Date:
Subject: Re: Multicolumn index including tsvector.