Re: [COMMITTERS] pgsql: Better fix for determining minimum and maximum int64 values that - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: Better fix for determining minimum and maximum int64 values that
Date
Msg-id 200702181758.25032.peter_e@gmx.net
Whole thread Raw
List pgsql-hackers
Alvaro Herrera wrote:
> Peter Eisentraut wrote:
> > Log Message:
> > -----------
> > Better fix for determining minimum and maximum int64 values that
> > doesn't require stdint.h and works for "busted" int64.
>
> Nice trick -- is this worth being in c.h or thereabouts?

I was thinking about adding something like PG_INT64_MAX etc. to c.h, but
that might have required adding limit.h to c.h and perhaps other
rearrangements, and that would have gone too far for the moment.  If
more call sites use it, it should be refactored.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: return varchar from C function
Next
From: "Knut P. Lehre"
Date:
Subject: FETCH from scroll cursor does not return count in libpq PQcmdStatus