Re: handling unconvertible error messages

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: handling unconvertible error messages
Дата
Msg-id 1bf47ff7-ef22-4ac4-1c49-61adfc9505d3@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: handling unconvertible error messages  (Victor Wagner <vitus@wagner.pp.ru>)
Ответы Re: handling unconvertible error messages  (Victor Wagner <vitus@wagner.pp.ru>)
Список pgsql-hackers
On 8/4/16 2:45 AM, Victor Wagner wrote:
> 4. At the session startup try to reinitializie LC_MESSAGES locale
> category with the combination
> of the server (or better client-send) language and region and
> client-supplied encoding, and if this failed, use untranslated error
> message. Obvoisly, attempt to set locale to ru_RU.ISO8859-1 would fail.
> so, if client would ask server with ru_RU.UTF-8 default locale to use
> LATIN1 encoding, server would fallback to untranslated messages.

I think this is basically my solution (1), with the same problems.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_size_pretty, SHOW, and spaces
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Logical Replication WIP