Re: type-casting and LIKE queries - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: type-casting and LIKE queries
Date
Msg-id 20030317022005.GB15619@dcc.uchile.cl
Whole thread Raw
In response to Re: type-casting and LIKE queries  (valerian <valerian2@hotpop.com>)
List pgsql-general
On Sun, Mar 16, 2003 at 09:05:52PM -0500, valerian wrote:
> On Sun, Mar 16, 2003 at 07:34:37PM -0500, valerian wrote:

> So that takes care of the first two types of queries, but not the one
> that has a % both at the beginning and end of the search key.
>
> Any ideas on how to handle those?

I don't think there's a way to handle expressions with that level of
generality.

Actually there are ways using suffix tries or some such structure, but
there's no implementation of that in Postgres.  I don't know if that
kind of thing is doable with GiST indexes; should be, at least in
theory.  If you want to do it, it's going to cost a nontrivial amount of
work.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El miedo atento y previsor es la madre de la seguridad" (E. Burke)

pgsql-general by date:

Previous
From: valerian
Date:
Subject: Re: type-casting and LIKE queries
Next
From: Lincoln Yeoh
Date:
Subject: Re: type-casting and LIKE queries