Re: INT64_MIN and _MAX

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Petr Jelinek <petr(at)2ndquadrant(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: INT64_MIN and _MAX
Date: 2015-03-22 05:19:52
Message-ID: 874mpdehka.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>>> "Andrew" == Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:

>>>>> "Petr" == Petr Jelinek <petr(at)2ndquadrant(dot)com> writes:

>>> So wouldn't it make more sense to move these definitions into c.h and
>>> standardize their usage?

Petr> I was thinking the same when I've seen Peter's version of Numeric
Petr> abbreviations patch. So +1 for that.

Hm, it looks like the same could be said for INT32_MIN and _MAX; some
places use INT_MIN etc., others say "we shouldn't assume int = int32"
and use (-0x7fffffff - 1) or whatever instead.

--
Andrew (irc:RhodiumToad)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2015-03-22 05:22:25 Re: Using 128-bit integers for sum, avg and statistics aggregates
Previous Message Michael Paquier 2015-03-22 05:17:28 Re: Using 128-bit integers for sum, avg and statistics aggregates