Re: Bug in numeric multiplication - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug in numeric multiplication
Date
Msg-id 15672.1442846520@sss.pgh.pa.us
Whole thread Raw
In response to Bug in numeric multiplication  (Dean Rasheed <dean.a.rasheed@gmail.com>)
Responses Re: Bug in numeric multiplication
List pgsql-hackers
Dean Rasheed <dean.a.rasheed@gmail.com> writes:
> The problem then arises in the final carry propagation pass. During
> this phase of the computation, the carry from one digit (which can be
> a shade under INT_MAX / NBASE) is added to the next digit, and that's
> where the overflow happens.

Nice catch!  I think the comment could use a little more work, but I'll
adjust it and push.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Rework the way multixact truncations work
Next
From: Adam Brightwell
Date:
Subject: Re: proposal: multiple psql option -c