From: Marc Mitchell <marcm@eisolution.com>
To: Ronny Theunissen <rth@protext.be>
To: pgsql-admin@postgresql.org
Subject: Re: using an index with like-operator
Date: Mon, 22 Jul 2002 09:02:46 -0500
Message-ID: <001801c23188$75427c80$6f01050a@eisolution.com> (raw)
References: <Pine.LNX.4.44.0207221232540.1716-100000@dtbst02.icmsgrp.com>
Been there, done that...
We had this same issue. You need to initially build your databases with
the correct locale. See the following:
http://www.ca.postgresql.org/users-lounge/docs/7.2/postgres/charset.html#AE
N16601
Response is the requirement to re-initdb with the correct value set for
env_var "LC_COLLATE". In fact, I suggest to do an initdb without setting
it and you should observe a message during processing stating the LIKE
queries will not support indexing. Then set the variable and do it again
and observe that you don't receive this message.
As far as we know, you'll have to dump out and then restore your data.
If you are looking for more info, suggest you search Google groups for
"Postgres Like Seq Scan" and you'll see you are in good company.
Marc Mitchell - Senior Application Architect
Enterprise Information Solutions, Inc.
4910 Main Street
Downers Grove, IL 60515
marcm@eisolution.com
----- Original Message -----
From: "Ronny Theunissen" <rth@protext.be>
To: <pgsql-admin@postgresql.org>
Sent: Monday, July 22, 2002 7:35 AM
Subject: [ADMIN] using an index with like-operator
> Hi,
>
> Anyone knows how to enable the usage of indexes in a like-query?
>
> Any help would be appreciated.
> Grts,
> Ronny
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: marcm@eisolution.com, rth@protext.be
Subject: Re: using an index with like-operator
In-Reply-To: <001801c23188$75427c80$6f01050a@eisolution.com>
References: <Pine.LNX.4.44.0207221232540.1716-100000@dtbst02.icmsgrp.com> <001801c23188$75427c80$6f01050a@eisolution.com>
* 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