pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug when retrieving money datatype.
Date: Thu, 01 Dec 2011 07:46:47 +0800
Message-ID: <4ED6C067.3070904@ringerc.id.au> (raw)
In-Reply-To: <9322.1322663810@sss.pgh.pa.us>
References: <jb3j7b$s3p$1@dough.gmane.org>
	<CA+0W9LOVh4JK1OLYqymtUFJ7Dxa5UTQv_v4g6-gswud12MrvAA@mail.gmail.com>
	<4ED5D369.30902@nitorcreations.com>
	<9322.1322663810@sss.pgh.pa.us>

On 11/30/2011 10:36 PM, Tom Lane wrote:
> Mikko Tiihonen<mikko.tiihonen@nitorcreations.com>  writes:
>> I was planning to add the binary format support for money to the
>> jdbc driver when I had some free time. It will solve all parsing
>> problems related to locale and give nice speed boost at the same time.
> I don't think that's exactly a magic bullet.  Yes, it'll mean you don't
> need to know the locale's currency symbol or what it uses for decimal
> point, but how are you going to determine where the decimal point is
> in the binary representation?  You'll still be dependent on knowing the
> server's lc_monetary locale.

I thought `money' was due to go away at some point? Isn't it about time 
to start logging:

    WARNING: The "money" datatype is deprecated. Use NUMERIC instead.

... whenever MONEY is used in DDL? Issues like locale-dependent 
representation make it all the more painful, and I can't help but wonder 
if it's worth trying to fix it.

--
Craig Ringer



view thread (5+ messages)

Message-ID: <4ED6C067.3070904@ringerc.id.au>
Permalink:  ../4ED6C067.3070904@ringerc.id.au/
Also on:    postgresql.org/message-id/4ED6C067.3070904@ringerc.id.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: ringerc@ringerc.id.au, tgl@sss.pgh.pa.us, mikko.tiihonen@nitorcreations.com
  Subject: Re: Bug when retrieving money datatype.
  In-Reply-To: <4ED6C067.3070904@ringerc.id.au>
  References: <jb3j7b$s3p$1@dough.gmane.org> <CA+0W9LOVh4JK1OLYqymtUFJ7Dxa5UTQv_v4g6-gswud12MrvAA@mail.gmail.com> <4ED5D369.30902@nitorcreations.com> <9322.1322663810@sss.pgh.pa.us> <4ED6C067.3070904@ringerc.id.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox