From: | Gregory Stark <stark(at)enterprisedb(dot)com> |
---|---|
To: | "Alvaro Herrera" <alvherre(at)commandprompt(dot)com> |
Cc: | "Martin Langhoff" <martin(dot)langhoff(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Controlling locale and impact on LIKE statements |
Date: | 2007-09-05 03:11:26 |
Message-ID: | 873axt6c2p.fsf@oxford.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
"Alvaro Herrera" <alvherre(at)commandprompt(dot)com> writes:
> Martin Langhoff escribió:
>
>> the whole thing of figuring out what the locale is and whether to add
>> magical additional indexes just for Pg makes me look like a loony.
>
> You are right and Eloy is wrong on that discussion. There is not
> anything the DB can do to use the regular index if the locale is not C
> for LIKE queries. There are good reasons for this. There's not much
> option beyond creating the pattern_ops index.
Indeed *all* indexes are magical additional things added just for the one
database. There's not any standard definition of what indexes you'll need for
all databases out there. Indexes aren't even in the SQL standard because
they're part of performance tuning for each individual database engine.
--
Gregory Stark
EnterpriseDB http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Maclean | 2007-09-05 03:24:44 | Re: Documentation fix regarding atan2 |
Previous Message | Bruno Wolff III | 2007-09-05 02:33:41 | Re: Documentation fix regarding atan2 |