Re: How useful is the money datatype?

From: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
To: Thom Brown <thombrown(at)gmail(dot)com>
Cc: PGSQL Mailing List <pgsql-general(at)postgresql(dot)org>
Subject: Re: How useful is the money datatype?
Date: 2009-10-03 10:43:09
Message-ID: db471ace0910030343o1a899ef8h5d823ea3ebbf7564@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi Thom,

Here's how I represent currency values:

CREATE DOMAIN currency
AS numeric(10,2);

I understand money has been deprecated. It has one obvious flaw that I
can think of: It cannot represent different currencies in different
tuples, with a currency_id field.

Regards,
Peter Geoghegan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Grzegorz Jaśkiewicz 2009-10-03 10:53:12 Re: How useful is the money datatype?
Previous Message Thom Brown 2009-10-03 10:33:46 How useful is the money datatype?