Re: Money casting too liberal?

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
Cc: Gavan Schneider <pg-gts(at)snkmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Money casting too liberal?
Date: 2013-04-02 03:29:37
Message-ID: 1364873377.7580.332.camel@sussancws0025
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Juan Pablo Cook 2013-04-02 03:41:12 Trigger of Transaction
Previous Message Julian 2013-04-02 02:12:49 Re: Using varchar primary keys.