Re: Default locale in postgres

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it possible to specify the default locale in postgres.conf in postgres 10 so that it takes this locale if no locale is specified in initdb?

On Sat, Jul 14, 2018 at 2:27 AM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
Debraj Manna <subharaj.manna@xxxxxxxxx> 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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux