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

Re: Strange interval arithmetic

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Strange interval arithmetic
Date: 2005-11-27 18:27:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
On Sun, Nov 27, 2005 at 08:45:18AM -0700, Michael Fuhr wrote:
> Looks like the value is stuck at 2^31 - 1 seconds:

I see this behavior back to at least 7.3.  I'd guess it's because
strtol() indicates overflow by returning LONG_MAX and setting errno
to ERANGE, but the code doesn't check for that.

Michael Fuhr

In response to


pgsql-hackers by date

Next:From: Simon RiggsDate: 2005-11-27 19:44:55
Subject: Using multi-row technique with COPY
Previous:From: Tom LaneDate: 2005-11-27 16:47:39
Subject: Re: [Fwd: [PHP-CVS] cvs: php-src(PHP_5_1) /ext/pdo_pgsql package.xml pgsql_driver.c pgsql_statement.c php_pdo_pgsql_int.h]

pgsql-patches by date

Next:From: Martijn van OosterhoutDate: 2005-11-27 20:02:54
Subject: [PATCH] Reduce dependancies of postmaster (without --as-needed)
Previous:From: Tom LaneDate: 2005-11-27 16:29:35
Subject: Re: Case Conversion Fix for MB Chars

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