Re: Different sort order

From: Poul Møller Hansen <freebsd(at)pbnet(dot)dk>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Different sort order
Date: 2007-05-28 18:39:13
Message-ID: 465B21D1.5070408@pbnet.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> What's the output of the following query on each server?
>
> select name, setting from pg_settings where name ~ '^lc_';
>
Ahh there's a difference
mydb=# select name, setting from pg_settings where name ~ '^lc_';
name | setting
-------------+---------
lc_collate | en_US
lc_ctype | en_US
lc_messages | en_US
lc_monetary | en_US
lc_numeric | en_US
lc_time | en_US

mydb=# select name, setting from pg_settings where name ~ '^lc_';
name | setting
-------------+---------
lc_collate | C
lc_ctype | C
lc_messages | C
lc_monetary | C
lc_numeric | C
lc_time | C

I guess the reason is that PostgreSQL got installed before setting the
locale,
and the only way to change it is using initdb --locale.

Poul

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Poul Møller Hansen 2007-05-28 18:46:22 Re: Different sort order
Previous Message Gregory Stark 2007-05-28 18:21:44 Re: Different sort order