Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-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

pgsql-hackers by date

Next:From: Michael FuhrDate: 2005-11-30 23:45:09
Subject: Re: Strange interval arithmetic
Previous:From: Andrew DunstanDate: 2005-11-30 23:00:07
Subject: Re: Strange interval arithmetic

pgsql-patches by date

Next:From: Michael FuhrDate: 2005-11-30 23:45:09
Subject: Re: Strange interval arithmetic
Previous:From: Andrew DunstanDate: 2005-11-30 23:00:07
Subject: Re: Strange interval arithmetic

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group