Re: Re: External search engine, advice

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: markw(at)mohawksoft(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: External search engine, advice
Date: 2001-05-19 15:12:53
Message-ID: 20010520001253P.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> Well, I kind of have that already. I can return a set, but I can't use it in a
> join.
>
> freedb=# select ftss_search('all { pink floyd money }') ;
> ftss_search
> -------------
> 120
> (1 row)
>
> freedb=# select * from cdsongs where songid = ftss_results() ;
> ERROR: Set-valued function called in context that cannot accept a set
>
> How do you join against a set?

Well, assuming that ftss_results() returns a set of songid, you could
do something like:

select * from cdsongs where songid in (select ftss_results());

BTW, what's the difference between ftss_search and ftss_results?
--
Tatsuo Ishii

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-05-19 15:13:11 Re: Plans for solving the VACUUM problem
Previous Message Tom Lane 2001-05-19 14:50:31 Re: Fix for tablename in targetlist