From: | "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | Gavan Schneider <pg-gts(at)snkmail(dot)com>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Money casting too liberal? |
Date: | 2013-03-30 13:52:54 |
Message-ID: | 20130330095254.427c25ab@imp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 29 Mar 2013 17:23:50 -0700
Jeff Davis <pgsql(at)j-davis(dot)com> wrote:
> Why not have various rounding functions that do exactly what you want?
> Then you can use them anywhere you want in an expression.
Perhaps but the languages that we use all have the capability to manage
this and we will probably never cover all the bases in PG.
> Tying a bunch of magic to the column, I/O function, or type system
> just seems like the wrong approach when it comes to real differences
> (like precision).
That's why I suggested that operations between money(2) and money(3)
should raise an error. Treat them as distinct types.
--
D'Arcy J.M. Cain <darcy(at)druid(dot)net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner.
IM: darcy(at)Vex(dot)Net, VOIP: sip:darcy(at)Vex(dot)Net
From | Date | Subject | |
---|---|---|---|
Next Message | D'Arcy J.M. Cain | 2013-03-30 13:58:15 | Re: Money casting too liberal? |
Previous Message | D'Arcy J.M. Cain | 2013-03-30 13:47:38 | Re: Money casting too liberal? |