setting LC_NUMERIC

From: "fritz-bayer(at)web(dot)de" <fritz-bayer(at)web(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: setting LC_NUMERIC
Date: 2006-02-22 13:26:15
Message-ID: 1140614775.376075.58900@g47g2000cwa.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

unfortunately I did not set the locales correct, when I created my
database. The result is, that the numeric type expects an american
format like "12.34".

Since I'm from europe, where this number will be represented as "12,34"
I would like to change it without having to recreate the database,
because it already contains data.

I set the lc_numeric in the postgres.conf but that did not help. I also
used:

=# SET LC_NUMERIC TO "de_DE(at)euro" ;
SET

In the psql client, but after that inserts with the european number
format also failed. I also changed the enviornment variables and
restarted the database server. No luck either.

How do I change the numeric format? I read the postgresql manual but
it's fishy about this and they ways they described I tried and failed.

Any advice is appreciated!

Fritz

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2006-02-22 14:13:41 Re: How do I use the backend APIs
Previous Message Richard Huxton 2006-02-22 13:04:58 Re: Réf. : Re: [GENERAL] Out