Re: Setting locale per connection

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Setting locale per connection
Дата
Msg-id 20030701200215.R65562-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Setting locale per connection  (Behdad Esfahbod <behdad@bamdad.org>)
Ответы Re: Setting locale per connection  (Behdad Esfahbod <behdad@bamdad.org>)
Re: Setting locale per connection  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, 2 Jul 2003, Behdad Esfahbod wrote:

> I'm new to the list, so don't flame at the first date ;).
>
> I usually use PostgreSQL for multiple languages, so I needed to
> set locale per connection, or can change the locale on the fly.
> I don't know if there is any such ability integrated in or not,
> so I have wrote my 10lines function as a wrapper around
> setlocale, that is attached.  So what I do is just a simple
> "SELECT locale('LC_COLLATE', 'fa_IR');" at connection time. Let
> me know if there is any standard way already implemented.

Hmm, I'd think there'd be some potential for danger there.  I don't play
with the locale stuff, but if the collation changes and you've got indexed
text (varchar, char) fields, wouldn't the index no longer necessarily be
in the correct order?




В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: Setting locale per connection
Следующее
От: Behdad Esfahbod
Дата:
Сообщение: Re: Setting locale per connection