Re: like performance w/o wildcards.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: like performance w/o wildcards.
Date: 2003-08-05 00:05:37
Message-ID: 17763.1060041937@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joseph Shraibman <jks(at)selectacast(dot)net> writes:
> What percentage of locales have this problem? Does latin1 have this problem?

Latin1 is an encoding, not a locale. To a first approximation, I'd say
*all* non-C locales have some kind of sorting funny business.

> And what about my original idea, can LIKE be turned into an = when there are no wildcards?

It does ... if the index-conversion optimization is enabled at all. Not
sure it's worth special-casing the '=' case otherwise.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-08-05 00:07:18 Re: varchar, text and cidr
Previous Message Richard Welty 2003-08-04 23:22:56 Re: varchar, text and cidr