Re: Optimizing numeric SUM() aggregate - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Optimizing numeric SUM() aggregate
Date
Msg-id 28450.1469622762@sss.pgh.pa.us
Whole thread Raw
In response to Re: Optimizing numeric SUM() aggregate  (Andrew Borodin <borodin@octonica.com>)
Responses Re: Optimizing numeric SUM() aggregate  (Andrew Borodin <borodin@octonica.com>)
List pgsql-hackers
Andrew Borodin <borodin@octonica.com> writes:
>> I don't think there is any reason for this new code to assume NBASE=10000

> There is a comment on line 64 stating that value 10000 is hardcoded
> somewhere else, any other value is not recommended and a bunch of code
> is left for historical reasons.

Doesn't matter: please use NBASE when you mean NBASE.  10000 is just a
magic number, and therefore bad coding style.  For that matter, spelling
INT_MAX as 0x7FFFFFF is also not per project style.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Craig Ringer
Date:
Subject: Re: handling unconvertible error messages
Next
From: Vik Fearing
Date:
Subject: Re: Why we lost Uber as a user