Re: BUG #3737: lower/upper fails to match extended chars in LATIN1

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #3737: lower/upper fails to match extended chars in LATIN1
Дата
Msg-id 47380F99.7060807@enterprisedb.com
обсуждение исходный текст
Ответ на BUG #3737: lower/upper fails to match extended chars in LATIN1  ("Jonas Forsman" <jonas@axier.org>)
Ответы Re: BUG #3737: lower/upper fails to match extended chars in LATIN1  (Jonas Forsman <jonas.forsman@openit.se>)
Список pgsql-bugs
(please keep the list cc'd)

Jonas Forsman wrote:
> if I cannot change charset within a postgres installation
> and then benefit from all the features in postgres isn't that to be seen
> as a bug
> or at least it should be a workaround easier than dumping everything
> which I think is a too large risk to take if not really neccessary.

Well, it's not a bug in the sense that it's documented and working as
designed.

But I agree that it sucks. Unfortunately changing the locale on-the-fly
isn't as easy as it might sound. The locale affects the sort-ordering,
for example, which means that you'd have to at least recreate all
indexes with text data in them anyway.

Changing the character encoding would be even worse. You'd have to
re-encode all data, which means rewriting all data in the database.

The best solution would be to support per-database and even per-table
and per-column locales and character encodings, so that you could do the
conversions piece by piece. Patches are welcome :-).

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: BUG #3734: Invalid XML schema output.
Следующее
От: "Lorenzo Fiorini"
Дата:
Сообщение: BUG #3744: libpq.a missed from /lib directory