Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRyPS-002fLg-Oa for pgsql-general@arkaria.postgresql.org; Thu, 11 Jul 2024 18:20:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sRyPR-00H1Ue-El for pgsql-general@arkaria.postgresql.org; Thu, 11 Jul 2024 18:20:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRyPR-00H1UJ-46 for pgsql-general@lists.postgresql.org; Thu, 11 Jul 2024 18:20:49 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRyPO-001bCh-J1 for pgsql-general@lists.postgresql.org; Thu, 11 Jul 2024 18:20:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 46BIKh272194462; Thu, 11 Jul 2024 14:20:43 -0400 From: Tom Lane To: H cc: pgsql-general@lists.postgresql.org, Adrian Klaver Subject: Re: Running psql in a docker container In-reply-to: References: <21E2962B-6905-462C-8C12-6E9454CD26FC@meddatainc.com> <97d1dbfd-6e7b-4019-828f-489ccd6e7eae@aklaver.com> Comments: In-reply-to H message dated "Thu, 11 Jul 2024 14:14:55 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2194460.1720722043.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Jul 2024 14:20:43 -0400 Message-ID: <2194461.1720722043@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk H writes: > Good question! =E2=80=9DNo success=E2=80=9D meant that I have not been a= ble to figure out how to have new databases default to en_US.UTF-8, instea= d they default to C.UTF-8. The default for an installation is determined at initdb time, either with an explicit locale switch or from the environment locale settings. regards, tom lane