From: Erki Kaldjärv <erki@webware.ee>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pg@fastcrypt.com, Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-performance@postgresql.org
Subject: Re: is it possible to get the optimizer to use indexes
Date: Fri, 19 Dec 2003 18:00:25 +0200
Message-ID: <3FE32099.40901@webware.ee> (raw)
References: <3FE1F5A1.6080908@geizhals.at>
<60n09q9bqg.fsf@dev6.int.libertyrms.info>
<1071789528.1629.10.camel@localhost.localdomain>
<3FE256AA.8000707@familyhealth.com.au>
<1071803317.1629.16.camel@localhost.localdomain>
<6121.1071805440@sss.pgh.pa.us>
<1071827412.1627.25.camel@localhost.localdomain>
<9224.1071844694@sss.pgh.pa.us>
Hello,
i got indexes to work with "text_pattern_ops" for locale et_EE.
So instead of:
create index some_index_name on some_table(some_text_field);
nor
create index some_index_name on some_table(some_text_field text_ops);
try to create index as follows:
create index some_index_name on some_table(some_text_field
text_pattern_ops);
Note that text_pattern_ops is available pg >= 7.4.
Regards,
Erki Kaldjärv
Webware OÜ
www.webware.ee
Tom Lane wrote:
>Dave Cramer <pg@fastcrypt.com> writes:
>
>
>>So even in a north-american locale, such as en_CA this will be a
>>problem?
>>
>>
>
>If it's not "C" we won't try to optimize LIKE. I know en_US does not
>work (case-insensitive, funny rules about spaces, etc) and I would
>expect en_CA has the same issues.
>
>If you're using 7.4 you have the option to create a special index
>instead of re-initdb'ing your whole database.
>
> regards, tom lane
>
>---------------------------(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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: erki@webware.ee, tgl@sss.pgh.pa.us, chriskl@familyhealth.com.au
Subject: Re: is it possible to get the optimizer to use indexes
In-Reply-To: <3FE32099.40901@webware.ee>
* 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