Re: Money casting too liberal? - Mailing list pgsql-general

From Jeff Davis
Subject Re: Money casting too liberal?
Date
Msg-id 1364873377.7580.332.camel@sussancws0025
Whole thread Raw
In response to Re: Money casting too liberal?  ("D'Arcy J.M. Cain" <darcy@druid.net>)
List pgsql-general
On Sat, 2013-03-30 at 09:52 -0400, D'Arcy J.M. Cain wrote:
> That's why I suggested that operations between money(2) and money(3)
> should raise an error.  Treat them as distinct types.

I don't think typmod is currently powerful enough to do that. It's lost
in many different types of expressions. Offhand, I don't even know of a
way to preserve the typmod through even a simple function.

Regards,
    Jeff Davis




pgsql-general by date:

Previous
From: Julian
Date:
Subject: Re: Using varchar primary keys.
Next
From: Juan Pablo Cook
Date:
Subject: Trigger of Transaction