Re: Simplifying Text Search

From: Gregory Stark <stark(at)enterprisedb(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Magnus Hagander" <magnus(at)hagander(dot)net>, "Simon Riggs" <simon(at)2ndquadrant(dot)com>, "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>, "Bruce Momjian" <bruce(at)momjian(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Simplifying Text Search
Date: 2007-11-15 10:41:16
Message-ID: 87k5ojx037.fsf@oxford.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Magnus Hagander <magnus(at)hagander(dot)net> writes:
>> On Wed, Nov 14, 2007 at 07:46:58AM +0000, Gregory Stark wrote:
>>> Have you yet given any advantages of contains over @@ ?
>
>> Familiarity for users of SQL Server that are migrating? ;-)
>> (http://msdn2.microsoft.com/en-us/library/ms187787.aspx)
>
> That argument would only hold water if we were going to adopt *all* of
> their syntax for the feature ... and the other choices they've made seem
> pretty ugly to me.

Well, yes and no. A degree of partial compatibility could still be interesting
without the bells and whistles as long as we're compatible as far as we do go.
We could always add bells and whistles later if we want.

What would be of concern here is that we could be cutting off adding a more
fully compatible function.

Their syntax for the search pattern is quite different (and more
human-readable). If we implement a contains() function which just takes a text
and casts it from our text representation to a tsquery then we're blocking
ever having a function which does a full conversion from an MSSQL style query
string to a tsquery.

--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
Ask me about EnterpriseDB's Slony Replication support!

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-15 11:46:02 Re: LDC - Load Distributed Checkpoints with PG8.3b2 on Solaris
Previous Message Zdenek Kotala 2007-11-15 10:25:02 Re: psql -f doesn't complain about directories