Re: Multicolumn index including tsvector.

From: Kris Gale <krisgale(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multicolumn index including tsvector.
Date: 2009-11-24 00:15:40
Message-ID: ed47a9150911231615v4a4ec72btb96ce16f3a4f1db7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2009-11-24 00:36:30 Re: [HACKERS] Updating column on row update
Previous Message Tom Lane 2009-11-24 00:12:35 Re: Multicolumn index including tsvector.