locale ordering
Hi List
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.
Any ideas?
Jacob
"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.Elphick@lfix.co.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