From: Craig Servin <cservin@cromagnon.com>
To: pgsql-admin@postgresql.org
Subject: Re: defining Your own sort order for already compiled PostgreSQL (because PSQL sort orders are incopatible with ASCII sort order for non -alpha characters)
Date: Tue, 23 May 2006 14:06:43 -0500
Message-ID: <200605231406.43198.cservin@cromagnon.com> (raw)
In-Reply-To: <84AAD313D71B1D4F9EE20E739CC3B6EDE974C1@ATLANTIK-CL.intern.digame.de>
References: <84AAD313D71B1D4F9EE20E739CC3B6EDE974C1@ATLANTIK-CL.intern.digame.de>
Can you clarify this for me? Does this mean that if we are using UTF-8 as the
encoding a like clause will not use the index unless we specify
varchar_pattern_ops as the index operator class?
Craig
On Tuesday 23 May 2006 03:14, Hakan Kocaman wrote:
> Hi,
>
> i think this explains, what you ment:
> http://www.linuxshare.ru/postgresql/manual/creating-cluster.html
> http://www.linuxshare.ru/postgresql/manual/charset.html#LOCALE
>
> So you don't need to set the Locale-Settings on compile-time,
> but on initdb-time.
>
> Also check if this applies to your kinds of query, because with
> a non-C Locale you need to define the indices with a different operator-
> class to use the indices with like-comparisons.
> See
> http://www.postgresql.org/docs/8.1/static/indexes-opclass.html
> for more details.
>
> Best regards
>
> Hakan Kocaman
> Software-Development
>
> digame.de GmbH
> Richard-Byrd-Str. 4-8
> 50829 Köln
>
> Tel.: +49 (0) 221 59 68 88 31
> Fax: +49 (0) 221 59 68 88 98
> Email: hakan.kocaman@digame.de
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: cservin@cromagnon.com
Subject: Re: defining Your own sort order for already compiled PostgreSQL (because PSQL sort orders are incopatible with ASCII sort order for non -alpha characters)
In-Reply-To: <200605231406.43198.cservin@cromagnon.com>
References: <84AAD313D71B1D4F9EE20E739CC3B6EDE974C1@ATLANTIK-CL.intern.digame.de> <200605231406.43198.cservin@cromagnon.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