From: | Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl> |
---|---|
To: | valerian <valerian2(at)hotpop(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: type-casting and LIKE queries |
Date: | 2003-03-17 02:20:06 |
Message-ID: | 20030317022005.GB15619@dcc.uchile.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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)
From | Date | Subject | |
---|---|---|---|
Next Message | Lincoln Yeoh | 2003-03-17 04:24:03 | Re: type-casting and LIKE queries |
Previous Message | valerian | 2003-03-17 02:05:52 | Re: type-casting and LIKE queries |