pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Don Seiler <don@seiler.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Mixed Locales and Upgrading
Date: Wed, 8 Apr 2020 09:32:22 +0200
Message-ID: <067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.com> (raw)
In-Reply-To: <CAHJZqBAGHosweYx74sLHbSkguAt=78m+Bg__-SsbV2FBMKFtPQ@mail.gmail.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>

On 2020-04-07 18:41, Don Seiler wrote:
> Follow-up question, the locale setting on the host would still be set to 
> en_US (as would the postgres and template0 databases). Should I look to 
> change that locale on the system to en_US.UTF-8, or even just for the 
> postgres user that the DB cluster runs as? What are the ramification for 
> doing (or not doing) so?

I think the only place where this would really matter is that psql by 
default sets the client encoding based on the current OS locale setting. 
  So if you don't change the setting to en_US.UTF-8, then you might get 
encoding errors when selecting data that is not representable as LATIN1 
or whatever.  However, if you change the setting, that doesn't mean your 
terminal setup will actually display Unicode correctly.  You said you're 
dealing with mostly ASCII-ish data anyway, so it will probably not make 
a difference.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (19+ messages)  latest in thread

Message-ID: <067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.com>
Permalink:  ../067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.com/
Also on:    postgresql.org/message-id/067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.com

 · 

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: peter.eisentraut@2ndquadrant.com, don@seiler.us, tgl@sss.pgh.pa.us, michael@paquier.xyz
  Subject: Re: Mixed Locales and Upgrading
  In-Reply-To: <067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.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> <067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.com>

* 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