Re: What is the effect of locale on numbers?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: A B <gentosaker(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: What is the effect of locale on numbers?
Date: 2010-09-21 15:15:52
Message-ID: 3029.1285082152@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

A B <gentosaker(at)gmail(dot)com> writes:
> I use swedish locale

> show lc_numeric;
> lc_numeric
> -------------
> sv_SE.UTF-8

> and I get a . (dot) in all floating-point numbers.

The regular output of numbers is intentionally not locale-aware.
You can use to_char() to obtain locale-specific formats.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Daniel Verite 2010-09-21 15:25:27 Re: trying to use libpq in Ubuntu
Previous Message Henri De Feraudy 2010-09-21 15:04:26 trying to use libpq in Ubuntu