Re: how to specify the locale that psql uses

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Kent Tong *EXTERN*" <kent(at)cpttm(dot)org(dot)mo>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: how to specify the locale that psql uses
Date: 2009-01-22 14:51:22
Message-ID: D960CB61B694CF459DCFB4B0128514C202F76650@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Informatica-Cooperativa Cnel. Oviedo 2009-01-22 15:55:26 Sugerencia de opcion
Previous Message Kent Tong 2009-01-22 14:48:13 Re: how to specify the locale that psql uses