Re: client_lc_messages - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: client_lc_messages
Date
Msg-id 20091023152823.GB355@alvh.no-ip.org
Whole thread Raw
In response to Re: client_lc_messages  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: client_lc_messages
Re: client_lc_messages
List pgsql-hackers
Peter Eisentraut wrote:

> Note that only glibc supports switching the language at run time.  And
> doing it is probably very expensive if you want to do it twice per
> message.

Ouch :-(

> I think you could probably get much of the use case out of this if you
> concentrate on making two switches for the client and the log, which can
> be set to a language or "untranslated", and if you choose a language it
> has to be the same for both.

So we'd go with a single setting to define language, which would be the
current lc_messages, and two new settings, say translate_log_messages
and translate_client_messages, the latter being USERSET.

Does that sound reasonable?

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


pgsql-hackers by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Using views for row-level access control is leaky
Next
From: Merlin Moncure
Date:
Subject: Re: plpgsql EXECUTE will not set FOUND