pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Question to localization
2+ messages / 2 participants
[nested] [flat]

* Question to localization
@ 2005-08-31 11:42  MG <pgsql-admin@carladata.de>
  0 siblings, 1 reply; 2+ messages in thread

From: MG @ 2005-08-31 11:42 UTC (permalink / raw)
  To: pgsql-admin

Hello,

I have a question to the usage of locale.

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?

Regards
Michaela

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

* Re: Question to localization
@ 2005-08-31 14:47  Tom Lane <tgl@sss.pgh.pa.us>
  parent: MG <pgsql-admin@carladata.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2005-08-31 14:47 UTC (permalink / raw)
  To: MG <pgsql-admin@carladata.de>; +Cc: pgsql-admin

"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



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


end of thread, other threads:[~2005-08-31 14:47 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-08-31 11:42 Question to localization MG <pgsql-admin@carladata.de>
2005-08-31 14:47 ` Tom Lane <tgl@sss.pgh.pa.us>

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