Re: Strange interval arithmetic

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange interval arithmetic
Date: 2005-11-30 23:15:33
Message-ID: 20051130231533.GA27780@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Wed, Nov 30, 2005 at 06:00:07PM -0500, Andrew Dunstan wrote:
> LONG_MIN/LONG_MAX might be the actual values provided, too, mightn't
> they? checking for ERANGE seems like the only viable test.

Errno needs to be checked in any case for just that reason; the
question was whether checking *only* errno is sufficient to detect
an error. According to the standard it is.

--
Michael Fuhr

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Fuhr 2005-11-30 23:45:09 Re: Strange interval arithmetic
Previous Message Andrew Dunstan 2005-11-30 23:00:07 Re: Strange interval arithmetic

Browse pgsql-patches by date

  From Date Subject
Next Message Michael Fuhr 2005-11-30 23:45:09 Re: Strange interval arithmetic
Previous Message Andrew Dunstan 2005-11-30 23:00:07 Re: Strange interval arithmetic