Re: What locale is my DB using?

From: Jean-Christian Imbeault <jc(at)mega-bucks(dot)co(dot)jp>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: What locale is my DB using?
Date: 2003-04-21 02:14:18
Message-ID: 3EA353FA.5060409@mega-bucks.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Tom Lane wrote:
>
> See pg_controldata (a standard program in 7.3, contrib in the release or
> two before).

Thanks!

I have found the following differences between the pg_controldata output
from two postgres installation I had tought were identical:

DB1:

LC_COLLATE: C
LC_CTYPE: C

DB2:

LC_COLLATE: en_US.UTF-8
LC_CTYPE: en_US.UTF-8

Both databases contain EUC_JP data and DB2 does not seem to be able to
do EUC_JP text comparisons correctly whereas DB1 is. Am I right in
assuming this is because of the differences in the values of these two
variables?

If this is the cause of the problem how can I change the values of these
variables for DB2? I tried to set them in postgres.conf but that gave an
error:

FATAL: 'LC_COLLATE' is not a valid option nameFATAL: 'LC_COLLATE' is
not a valid option name

Thanks,

Jean-Christian Imbeault

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message SALUNKHE,MANDAR (HP-Singapore,ex1) 2003-04-21 02:14:56 Re: Postgresql database does not start and just hangs
Previous Message Tom Lane 2003-04-21 02:11:25 Re: What locale is my DB using?