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

From Kris Gale
Subject Re: Multicolumn index including tsvector.
Date
Msg-id ed47a9150911231615v4a4ec72btb96ce16f3a4f1db7@mail.gmail.com
Whole thread Raw
In response to Re: Multicolumn index including tsvector.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> 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.

Perfect!  Thanks, Tom.  The query plan now shows it considering both columns in the index condition.

Kris

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Multicolumn index including tsvector.
Next
From: Craig Ringer
Date:
Subject: Re: [HACKERS] Updating column on row update