Re: Simplifying Text Search - Mailing list pgsql-hackers

From Martijn van Oosterhout
Subject Re: Simplifying Text Search
Date
Msg-id 20071112210311.GD13476@svana.org
Whole thread Raw
In response to Re: Simplifying Text Search  (Aidan Van Dyk <aidan@highrise.ca>)
Responses Re: Simplifying Text Search  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
On Mon, Nov 12, 2007 at 03:44:18PM -0500, Aidan Van Dyk wrote:
> Can LIKE be easily overloaded in the parser?  So:
>     text LIKE text
> works in it's current form, and
>     tsvector LIKE tsquery
> also works like the @@?  Or have I gotten all the ts* types all mixed up
> again...

AIUI LIKE is mashed into an operator at parse time, so yes, if you
create the operator with the right name it will just work.

Or not (I havn't tested it).

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Simplifying Text Search
Next
From: Simon Riggs
Date:
Subject: Re: Simplifying Text Search