Re: How useful is the money datatype? - Mailing list pgsql-general

From Peter Geoghegan
Subject Re: How useful is the money datatype?
Date
Msg-id db471ace0910030343o1a899ef8h5d823ea3ebbf7564@mail.gmail.com
Whole thread Raw
In response to How useful is the money datatype?  (Thom Brown <thombrown@gmail.com>)
Responses Re: How useful is the money datatype?
Re: How useful is the money datatype?
List 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

pgsql-general by date:

Previous
From: Thom Brown
Date:
Subject: How useful is the money datatype?
Next
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: How useful is the money datatype?