Re: Difference between Python and Postgres locale currency formats

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christian Jauvin <cjauvin(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Difference between Python and Postgres locale currency formats
Date: 2013-04-08 23:04:57
Message-ID: 26286.1365462297@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Christian Jauvin <cjauvin(at)gmail(dot)com> writes:
> while using Postgres 9.1:

> set lc_monetary = 'fr_CA.UTF-8';
> select 1.234::money; -- '$1,23'

That was changed in 9.2 --- per the release notes:

Support more locale-specific formatting options for the money
data type (Tom Lane)

Specifically, honor all the POSIX options for ordering of the
value, sign, and currency symbol in monetary output. Also, make
sure that the thousands separator is only inserted to the left
of the decimal point, as required by POSIX.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-04-08 23:16:11 Re: Selecting timestamp from Database
Previous Message Ramsey Gurley 2013-04-08 22:38:03 Re: Inconsistent query performance