Why is lc_messages superuser only? - Mailing list pgsql-hackers

From Magnus Hagander
Subject Why is lc_messages superuser only?
Date
Msg-id 20070723150509.GB5663@svr2.hagander.net
Whole thread Raw
Responses Re: Why is lc_messages superuser only?  (Andrew Dunstan <andrew@dunslane.net>)
Re: Why is lc_messages superuser only?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Why is lc_messages superuser only?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Looking around the lc_messages stuff a bit, I notice it's set to
superuser-only. 

I do use
ALTER USER joe SET lc_messages='sv_SE'

now and then to change the language for a user. And I see it's also
possible to use it on a database level by doing
ALTER DATABASE postgres SET lc_messages='sv_SE'

(user overriding database overriding system default, as expected)

However, it can also be useful for the user to be able to change his own
session, and this only works if you are superuser.

Is there a reason for this?

//Magnus


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: syslogging oddity
Next
From: Magnus Hagander
Date:
Subject: Re: MAXIMUM_ALIGNOF on Windows-32