Re: handling unconvertible error messages - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: handling unconvertible error messages
Date
Msg-id 1bf47ff7-ef22-4ac4-1c49-61adfc9505d3@2ndquadrant.com
Whole thread Raw
In response to Re: handling unconvertible error messages  (Victor Wagner <vitus@wagner.pp.ru>)
Responses Re: handling unconvertible error messages  (Victor Wagner <vitus@wagner.pp.ru>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: pg_size_pretty, SHOW, and spaces
Next
From: Andres Freund
Date:
Subject: Re: Logical Replication WIP