pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Don Seiler <don@seiler.us>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Mixed Locales and Upgrading
Date: Wed, 29 Apr 2020 19:39:08 -0400
Message-ID: <9139.1588203548@sss.pgh.pa.us> (raw)
In-Reply-To: <6bcc201e-e3da-329b-ca7f-d90c9986a769@aklaver.com>
References: <CAHJZqBAS6kuTWZwSbu8KqfhJ8dapvTegyA1QweAHAmmQveUyRA@mail.gmail.com>
	<5624.1584372534@sss.pgh.pa.us>
	<CAHJZqBD0tv8VswMA7o=8L4DwVKWVxyx9cCv-xzr6-ZQke3GZ8Q@mail.gmail.com>
	<31606.1584453361@sss.pgh.pa.us>
	<CAHJZqBDAqGbgAHxVQ1rG1QmKPpkqU_W8yi82EdqA-o_0WgaLYw@mail.gmail.com>
	<1182.1584456350@sss.pgh.pa.us>
	<20200318022525.GE214947@paquier.xyz>
	<CAHJZqBBPf_peA40ZswtcYaj5OA0OxynJxKqVs57sARzEe45QtA@mail.gmail.com>
	<CAHJZqBB2qFH0KkmTZwoGvEnPdD+KKpZxf=yWOJMDKO4w6LvdQg@mail.gmail.com>
	<1505.1585603832@sss.pgh.pa.us>
	<CAHJZqBDC1Qdse+GVUn0CrVh+_f5dRPSNnqwRw_6WSy=1AhvEAQ@mail.gmail.com>
	<CAHJZqBAGHosweYx74sLHbSkguAt=78m+Bg__-SsbV2FBMKFtPQ@mail.gmail.com>
	<CAHJZqBCNoDRNmti4rMewbWukc9fiY+xeA_8jk4TBpxeSTGdr3A@mail.gmail.com>
	<6bcc201e-e3da-329b-ca7f-d90c9986a769@aklaver.com>

Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 4/29/20 1:10 PM, Don Seiler wrote:
>> On Tue, Apr 7, 2020 at 11:41 AM Don Seiler <don@seiler.us 
>> <mailto:don@seiler.us>> wrote:
>> Since I'm not changing the postgres or template0 databases (leaving 
>> those as en_US/LATIN1), do I keep lc_collate/lc_ctype as en_US? It's 
>> just the template1 and application database that I've set to en_US.UTF-8.

I believe that those settings only affect locale-dependent processing
in the postmaster and/or background processes, which there should be
little or none of anyway.  Processes connected to specific databases will
adopt the settings defined for those databases.

>> I'm also struggling to see how lc_messages is an empty string. It is 
>> commented out in postgresql.conf but suggests 'C' will be the default. 

> Are you sure?:
>      Sets the language in which messages are displayed. Acceptable 
> values are system-dependent; see Section 23.1 for more information. If 
> this variable is set to the empty string (which is the default) then the 
> value is inherited from the execution environment of the server in a 
> system-dependent way. ..."

The "system-dependent way" is "adopt whatever the LANG/LC_foo environment
variables say at server startup", at least on non-Windows machines.
I think that C is the fallback if none of those variables are set, though.

Short answer is you shouldn't need to mess with these.

			regards, tom lane





view thread (19+ messages)  latest in thread

Message-ID: <9139.1588203548@sss.pgh.pa.us>
Permalink:  ../9139.1588203548@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9139.1588203548@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, don@seiler.us, michael@paquier.xyz
  Subject: Re: Mixed Locales and Upgrading
  In-Reply-To: <9139.1588203548@sss.pgh.pa.us>
  References: <CAHJZqBAS6kuTWZwSbu8KqfhJ8dapvTegyA1QweAHAmmQveUyRA@mail.gmail.com> <5624.1584372534@sss.pgh.pa.us> <CAHJZqBD0tv8VswMA7o=8L4DwVKWVxyx9cCv-xzr6-ZQke3GZ8Q@mail.gmail.com> <31606.1584453361@sss.pgh.pa.us> <CAHJZqBDAqGbgAHxVQ1rG1QmKPpkqU_W8yi82EdqA-o_0WgaLYw@mail.gmail.com> <1182.1584456350@sss.pgh.pa.us> <20200318022525.GE214947@paquier.xyz> <CAHJZqBBPf_peA40ZswtcYaj5OA0OxynJxKqVs57sARzEe45QtA@mail.gmail.com> <CAHJZqBB2qFH0KkmTZwoGvEnPdD+KKpZxf=yWOJMDKO4w6LvdQg@mail.gmail.com> <1505.1585603832@sss.pgh.pa.us> <CAHJZqBDC1Qdse+GVUn0CrVh+_f5dRPSNnqwRw_6WSy=1AhvEAQ@mail.gmail.com> <CAHJZqBAGHosweYx74sLHbSkguAt=78m+Bg__-SsbV2FBMKFtPQ@mail.gmail.com> <CAHJZqBCNoDRNmti4rMewbWukc9fiY+xeA_8jk4TBpxeSTGdr3A@mail.gmail.com> <6bcc201e-e3da-329b-ca7f-d90c9986a769@aklaver.com> <9139.1588203548@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox