Fwd: Re: [BUGS] dividing money by money

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Andy Balholm" <andy(at)balholm(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Fwd: Re: [BUGS] dividing money by money
Date: 2010-05-26 18:18:29
Message-ID: 4BFD1FA50200002500031B36@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Andy,

Do you want to package this up as a patch for 9.1? If not, is it OK
if I do?

-Kevin


Andy Balholm <andy(at)balholm(dot)com> wrote:
> On Apr 1, 2010, at 7:57 AM, Kevin Grittner wrote:
>> I'm inclined to think it's better to have an explicit cast from
>> money to numeric, as long as it is exact, and leave the division
>> of money by money as float8. It does sort of beg the question of
>> whether we should support a cast back in the other direction,
>> though. I think that would wrap this all up in a tidy package.
>
> OK. Here is the whole thing in C:
>
> [implementation as user-side functions]

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-05-26 18:30:46 Re: Synchronization levels in SR
Previous Message Heikki Linnakangas 2010-05-26 18:02:13 Re: Synchronization levels in SR