Re: locale ordering

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: "Jacob Vennervald Madsen" <JVM(at)gopinocchio(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: locale ordering
Date: 2001-09-12 21:31:25
Message-ID: 200109122131.f8CLVR8s031504@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jacob Vennervald Madsen" wrote:
>How do I change the locale in the database?
>I've tried to set the LANG environment variable before starting the
>database but it still sorts it the english way.

You can't change it; it's set for the life of all databases.

Use pg_dumpall to save all data.
Destroy all databases and $PGDATA itself.
Set and export the desired locale in LANG.
Use initdb to recreate $PGDATA; then restore the dumped databases.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Let the wicked forsake his way, and the unrighteous
man his thoughts; and let him return unto the LORD,
and He will have mercy upon him; and to our God, for
he will abundantly pardon." Isaiah 55:7

Browse pgsql-general by date

  From Date Subject
Next Message Martín Marqués 2001-09-12 21:31:59 locale and spanish acute
Previous Message Oliver Elphick 2001-09-12 21:27:45 Re: Inheritance c.cities ??