Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe58R-0001VQ-VC for pgsql-admin@arkaria.postgresql.org; Fri, 13 Jul 2018 20:57:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fe58Q-0001QG-FI for pgsql-admin@arkaria.postgresql.org; Fri, 13 Jul 2018 20:57:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe58Q-0001Q8-8W for pgsql-admin@lists.postgresql.org; Fri, 13 Jul 2018 20:57:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe58J-0000xY-8V for pgsql-admin@postgresql.org; Fri, 13 Jul 2018 20:57:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6DKvdAr010740; Fri, 13 Jul 2018 16:57:39 -0400 From: Tom Lane To: Debraj Manna cc: pgsql-admin Subject: Re: Default locale in postgres In-reply-to: References: <773.1531506368@sss.pgh.pa.us> Comments: In-reply-to Debraj Manna message dated "Sat, 14 Jul 2018 00:20:54 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10738.1531515459.1@sss.pgh.pa.us> Date: Fri, 13 Jul 2018 16:57:39 -0400 Message-ID: <10739.1531515459@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Debraj Manna writes: > Thanks Tom for replying. > support@vrni-platform-release:~$ locale > LANG=en_US.UTF-8 OK, so that's what you have in your interactive shell environment ... > My locale settings are like above. But I am seeing is C picked by postgres. > Any idea why it is picking C instead of en_US.UTF-8. Presumably, initdb is not seeing that same environment. Might be a side effect of running it under sudo or some wrapper script. regards, tom lane