From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Joseph Shraibman <jks(at)selectacast(dot)net> |
Cc: | pgsql general list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: like performance w/o wildcards. |
Date: | 2003-08-04 17:10:53 |
Message-ID: | 200308041710.h74HAr325978@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Joseph Shraibman wrote:
> Bruce Momjian wrote:
> > Well, I don't see that = would be significantly faster than LIKE with a
> > no-wildcard string, so I don't see the value in having LIKE detect
> > non-whildcard strings.
> >
> Because it won't use an index for a LIKE, only a seqscan.
Oh, that's interesting. I think a LIKE will already use an index,
except for non-C locales. Is that the issue?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-08-04 18:18:35 | Re: like performance w/o wildcards. |
Previous Message | Joseph Shraibman | 2003-08-04 17:08:51 | Re: like performance w/o wildcards. |