Search Postgresql Archives

Re: how to specify the locale that psql uses

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kent Tong wrote:
> I am referring to the locale on the client that determines the text prompts it outputs.

I think "Reg me Please" got you wrong, here's the answer:

To set the locale for server messages, set the server configuration
parameter "lc_messages" to the appropriate value.

You can either do this for the current session with the SQL command:
SET lc_messages='....';
or you can change the default in postgresql.conf and reload.

To change the locale of messages *by* psql, libpq and other client
programs, change the current locale where you start the client.

How you do this depends on the operating system; on UNIX you do
it by setting the LANG environment variable.

Yours,
Laurenz Albe

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux