Re: monetary data type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Phuong Ma <pma(at)commandprompt(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: monetary data type
Date: 2001-04-06 22:31:15
Message-ID: 7526.986596275@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Phuong Ma <pma(at)commandprompt(dot)com> writes:
> I read this from the 7.1 documentation:
> 3.2. Monetary Type

> The money type may become a locale-aware
> layer over the numeric type in a future release.

> The money type stores U.S.-style currency with fixed decimal point
> representation. If Postgres is compiled with locale support then the
> money type uses locale-specific output formatting.

> ----------
> Why does this first say that the money type may become locale-aware in a
> FUTURE release, then the next paragraph says that the money type USES
> locale specific output formatting. So which one is it?

In that sentence, "locale-aware" is an adjective modifying "layer".
It does not say that the current implementation is not locale-aware;
it says that it's not based on numeric.

> Why would it
> be better to use numeric or decimal rather than money data type?

Overflow.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-04-06 23:18:07 Re: How much log space does VACUUM need?
Previous Message Gordon A. Runkle 2001-04-06 22:18:21 How much log space does VACUUM need?