Re: like performance w/o wildcards. - Mailing list pgsql-general

From Bruce Momjian
Subject Re: like performance w/o wildcards.
Date
Msg-id 200308041710.h74HAr325978@candle.pha.pa.us
Whole thread Raw
In response to Re: like performance w/o wildcards.  (Joseph Shraibman <jks@selectacast.net>)
List 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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-general by date:

Previous
From: Joseph Shraibman
Date:
Subject: Re: like performance w/o wildcards.
Next
From: Tom Lane
Date:
Subject: Re: like performance w/o wildcards.