Re: Index Ops supporting money type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Rich Ryan" <rich(at)usedcars(dot)com>
Cc: "PostgreSQL-development" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: Index Ops supporting money type
Date: 2000-10-19 05:40:54
Message-ID: 7916.971934054@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Rich Ryan" <rich(at)usedcars(dot)com> writes:
> Does anyone know if there is an operator class that supports the money data
> type?

There is not.

Type money is on its way out anyway, at least in its current
incarnation, because it's (a) nonstandard, (b) doesn't support
a reasonable number of digits, and (c) isn't internationalizable.
While (a) is not a fatal objection, (b) and (c) mean the type is
pretty badly crippled.

I doubt that anyone will want to do any work on money in its present
form. Sooner or later it ought to be reimplemented as an I/O skin
on type "numeric" ... hopefully with decent locale support. In the
meantime, efforts like adding index support seem like throwing good
work after bad.

I suggest using type numeric for now.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vadim Mikheev 2000-10-19 05:51:22 Re: time stops within transaction
Previous Message Vadim Mikheev 2000-10-19 05:13:18 Re: SetQuerySnapshot() for utility statements