From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | harding(dot)ian(at)gmail(dot)com |
Cc: | Gabriel Laet <gabriel(dot)laet(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Design Table & Search Question |
Date: | 2007-06-01 04:30:45 |
Message-ID: | 465FA0F5.8070505@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Ian Harding wrote:
> On 5/31/07, Joshua D. Drake <jd(at)commandprompt(dot)com> wrote:
>> Ian Harding wrote:
>> > tsearch indexes have to reside in the table where the data is, for the
>> > automagical functions that come with it to work. You can define a
>> > view that joins the tables, then search each of the index columns for
>> > the values you are looking for.
>>
>> No they don't.
>>
>
> Hm? Allow me to clarify.
>
> To the best of my knowledge, and in my limited experience, the
> tsearch2() trigger function provided with tsearch will only index
> fields present in the table upon which it is created, in an index
> column present in the table upon which it is created. If I am
> incorrect in this assessment I would be glad to be corrected.
>
> Of course, custom triggers can be written to do anything from soup to nuts.
Yes you would need a trigger to keep a separate search table but you can
certainly join on that table for selects.
J
>
> - Ian A. Harding
>
>> Joshua D. Drake
>>
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org/
>
--
=== The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240
Providing the most comprehensive PostgreSQL solutions since 1997
http://www.commandprompt.com/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2007-06-01 05:23:54 | Re: how to use array with "holes" ? |
Previous Message | Ian Harding | 2007-06-01 04:22:35 | Re: Design Table & Search Question |