Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM5CJ-0001UE-VK for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2020 07:32:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM5CI-0006mn-Sb for pgsql-general@arkaria.postgresql.org; Wed, 08 Apr 2020 07:32:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM5CI-0006mf-LM for pgsql-general@lists.postgresql.org; Wed, 08 Apr 2020 07:32:30 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM5CG-0006Pc-Qs for pgsql-general@postgresql.org; Wed, 08 Apr 2020 07:32:30 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 157876CC; Wed, 8 Apr 2020 03:32:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 08 Apr 2020 03:32:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=8BQ1BSS07pxBAoKwdJ2lGgnV4bqvMjTlFxlYW2XLx 00=; b=jpLVSK3Tfh31LIIRK9xpABTIMnuTX6YpuUSpPSAmMiL6Ql097pH8xEY79 qwH+KGqB3GdObG86/s1bolA0V3gb32ohQVzWH9mvZdMqvT9vw2IBgiVu+HY+As35 gR7+sOCR5XBB0Ebtb0w0E/k4x8DZz5XHIiSsEDIA9FdttCpQhB+GhkgidIvGwZNx 1bQsg/hm7U6ZL3aqe6WlhEWGA0DOxezApC34AycjS3l5SuldJF9W4hzyKT1i/FPj +j9goz3tipyTN+vXN6uR9m8xaguhekLiUamNzhSzI3C6AuI5gpK8x8W/TVswl4A6 JZ2rXV/vyCXgTtnAKPOrf5DXalTyQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeigdduvdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrvddufedrvdegudenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p5df2d5f1.dip0.t-ipconnect.de [93.242.213.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 731B3328005E; Wed, 8 Apr 2020 03:32:24 -0400 (EDT) Subject: Re: Mixed Locales and Upgrading To: Don Seiler , Tom Lane References: <5624.1584372534@sss.pgh.pa.us> <31606.1584453361@sss.pgh.pa.us> <1182.1584456350@sss.pgh.pa.us> <20200318022525.GE214947@paquier.xyz> <1505.1585603832@sss.pgh.pa.us> Cc: Michael Paquier , Postgres General From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <067adeb6-c601-7c97-9020-af6235d1757d@2ndquadrant.com> Date: Wed, 8 Apr 2020 09:32:22 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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