Re: Simplifying Text Search

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Aidan Van Dyk <aidan(at)highrise(dot)ca>
Cc: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Simplifying Text Search
Date: 2007-11-12 21:03:11
Message-ID: 20071112210311.GD13476@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
> -- John F Kennedy

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2007-11-12 21:07:37 Re: Simplifying Text Search
Previous Message Joshua D. Drake 2007-11-12 20:59:40 Re: Simplifying Text Search