From: Chris Cox <cjcox@optushome.com.au>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: LIKE on index not working
Date: Fri, 23 Jul 2004 09:46:27 +1000
Message-ID: <002a01c47046$1b31b2c0$5100000a@PHOENIX> (raw)
References: <030e01c46fbe$e8baeb90$5100000a@PHOENIX>
<200407221441.05497.peter_e@gmx.net>
Hi Peter,
Thanks for the tip. The locale we're using is en_US.UTF-8. From my limited
knowledge of locales, that's a non-C one isn't it?
Am I right in saying that to fix it I need to initdb again with a C locale?
How do I go about doing that on an environment with some 132 databases?
What a pain!
Chris
----- Original Message -----
From: "Peter Eisentraut" <peter_e@gmx.net>
To: "Chris Cox" <cjcox@optushome.com.au>
Cc: <pgsql-sql@postgresql.org>
Sent: Thursday, July 22, 2004 10:41 PM
Subject: Re: [SQL] LIKE on index not working
> Am Donnerstag, 22. Juli 2004 09:38 schrieb Chris Cox:
> > For some reason I just can't get this to use the index for the following
> > query. I'm using PostgreSQL 7.3.4.
>
> In 7.3, LIKE cannot use an index unless you set the locale to C. In 7.4,
LIKE
> can use an index, but it has to be a different kind of index, as explained
> here:
>
> http://www.postgresql.org/docs/7.4/static/indexes-opclass.html
>
> --
> Peter Eisentraut
> http://developer.postgresql.org/~petere/
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: cjcox@optushome.com.au, peter_e@gmx.net
Subject: Re: LIKE on index not working
In-Reply-To: <002a01c47046$1b31b2c0$5100000a@PHOENIX>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox