pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
using an index with like-operator
2+ messages / 2 participants
[nested] [flat]

* using an index with like-operator
@ 2002-07-22 12:35 Ronny Theunissen <rth@protext.be>
  2002-07-22 14:02 ` Re: using an index with like-operator Marc Mitchell <marcm@eisolution.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Ronny Theunissen @ 2002-07-22 12:35 UTC (permalink / raw)
  To: pgsql-admin

Hi,

Anyone knows how to enable the usage of indexes in a like-query?

Any help would be appreciated.
Grts,
Ronny




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: using an index with like-operator
  2002-07-22 12:35 using an index with like-operator Ronny Theunissen <rth@protext.be>
@ 2002-07-22 14:02 ` Marc Mitchell <marcm@eisolution.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Marc Mitchell @ 2002-07-22 14:02 UTC (permalink / raw)
  To: Ronny Theunissen <rth@protext.be>; pgsql-admin

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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-07-22 14:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-07-22 12:35 using an index with like-operator Ronny Theunissen <rth@protext.be>
2002-07-22 14:02 ` Marc Mitchell <marcm@eisolution.com>

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