Re: Default locale in postgres

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Debraj Manna <subharaj(dot)manna(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Default locale in postgres
Date: 2018-07-13 20:57:39
Message-ID: 10739.1531515459@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Debraj Manna <subharaj(dot)manna(at)gmail(dot)com> writes:
> Thanks Tom for replying.
> support(at)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Debraj Manna 2018-07-14 06:10:21 Re: Default locale in postgres
Previous Message Debraj Manna 2018-07-13 18:50:54 Re: Default locale in postgres