pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: MG <pgsql-admin@carladata.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Question to localization
Date: Wed, 31 Aug 2005 10:47:13 -0400
Message-ID: <1857.1125499633@sss.pgh.pa.us> (raw)
In-Reply-To: <001901c5ae21$139060b0$340aa8c0@geisslinger>
References: <001901c5ae21$139060b0$340aa8c0@geisslinger>

"MG" <pgsql-admin@carladata.de> writes:
> In the PostgreSQL 8.0.3 Documentation is written:
> "The drawback of using locales other than C or POSIX in PostgreSQL is =
> its performance impact. It slows character handling and prevents =
> ordinary indexes from being used by LIKE. For this reason use locales =
> only if you actually need them. "

> Is there a general perfomance deficit, when using locales or only when =
> using LIKE?

The locale setting affects every comparison of text values (the
documentation is poorly written on this point, because it mentions
only ORDER BY).  So if you use text (or varchar or char) keys in
your tables, you'll probably see a noticeable performance hit from
using a non-C locale.  If you tend to use integer keys then you might
not notice any difference.

			regards, tom lane



view thread (2+ messages)

Message-ID: <1857.1125499633@sss.pgh.pa.us>
Permalink:  ../1857.1125499633@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1857.1125499633@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, pgsql-admin@carladata.de
  Subject: Re: Question to localization
  In-Reply-To: <1857.1125499633@sss.pgh.pa.us>
  References: <001901c5ae21$139060b0$340aa8c0@geisslinger> <1857.1125499633@sss.pgh.pa.us>

* 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