Re: INTERVAL overflow detection is terribly broken - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: INTERVAL overflow detection is terribly broken
Date
Msg-id 20140127222635.GD8691@momjian.us
Whole thread Raw
In response to Re: INTERVAL overflow detection is terribly broken  (Bruce Momjian <bruce@momjian.us>)
Responses Re: INTERVAL overflow detection is terribly broken  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, Jan 27, 2014 at 04:47:22PM -0500, Bruce Momjian wrote:
> The updated attached patch has overflow detection for interval
> subtraction, multiply, and negate.  There are also some comparison
> cleanups.

Oh, one odd thing about this patch.  I found I needed to use INT64_MAX,
but I don't see it used anywhere else in our codebase.  Is this OK?  Is
there a better way?

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + Everyone has their own god. +



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Add min and max execute statement time in pg_stat_statement
Next
From: Dean Rasheed
Date:
Subject: Re: [PATCH] Negative Transition Aggregate Functions (WIP)