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 1fe2lk-0003OZ-6Q for pgsql-admin@arkaria.postgresql.org; Fri, 13 Jul 2018 18:26:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fe2li-00009p-8I for pgsql-admin@arkaria.postgresql.org; Fri, 13 Jul 2018 18:26:14 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe2lh-00009a-UN for pgsql-admin@lists.postgresql.org; Fri, 13 Jul 2018 18:26:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fe2lf-0006Xl-G1 for pgsql-admin@postgresql.org; Fri, 13 Jul 2018 18:26:12 +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 w6DIQ8Hd000774; Fri, 13 Jul 2018 14:26:08 -0400 From: Tom Lane To: Debraj Manna cc: pgsql-admin Subject: Re: Default locale in postgres In-reply-to: References: Comments: In-reply-to Debraj Manna message dated "Fri, 13 Jul 2018 23:48:15 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <772.1531506368.1@sss.pgh.pa.us> Date: Fri, 13 Jul 2018 14:26:08 -0400 Message-ID: <773.1531506368@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Debraj Manna writes: > Can someone let me know if I am not passing any locale while doing initdb > what locale (Collate & Ctype) will postgres 9.5.4 pick? Whatever is the prevailing default in initdb's environment --- see LANG and LC_XXX environment variables. If none of those are set, I imagine it'll fall back to C locale, though this choice is possibly dependent on your local libc. "man locale" might be informative. regards, tom lane