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 1jvE1b-00035X-5D for pgsql-novice@arkaria.postgresql.org; Tue, 14 Jul 2020 06:02:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jvE1Z-0000fN-Ab for pgsql-novice@arkaria.postgresql.org; Tue, 14 Jul 2020 06:02:41 +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 1jvE1Z-0000fG-4e for pgsql-novice@lists.postgresql.org; Tue, 14 Jul 2020 06:02:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jvE1W-0004KP-Ge for pgsql-novice@postgresql.org; Tue, 14 Jul 2020 06:02:40 +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 06E62ZS42796449; Tue, 14 Jul 2020 02:02:35 -0400 From: Tom Lane To: Anrik Drenth cc: pgsql-novice@postgresql.org Subject: Re: Postgres 12 - enable en_NZ.UTF-8 In-reply-to: References: Comments: In-reply-to Anrik Drenth message dated "Tue, 14 Jul 2020 14:56:02 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2796447.1594706555.1@sss.pgh.pa.us> Date: Tue, 14 Jul 2020 02:02:35 -0400 Message-ID: <2796448.1594706555@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Anrik Drenth writes: > How do I enable "en_NZ.UTF-8", in Postgres 12, in the file > /etc/postgresql/12/main/postgresql.conf > Changing 'en_US.UTF-8' to 'en_NZ.UTF-8' for the following: lc_messages, > lc_monetary, lc_numeric, lc_time. > And restarting Postgres 12 - I get the error "invalid value for parameter > "lc_time": "en_NZ.UTF-8". That has nothing to do with what's in pg_collation. It means that you don't have this locale definition installed at the OS level. Probably "locale -a | grep NZ" will not find it. So you need to install the relevant OS package. You didn't say what platform you're on, so I can't guess which package that is; but it's something related to libc, not Postgres. regards, tom lane