Re: Is there a good reason we don't have INTERVAL 'infinity'? - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Is there a good reason we don't have INTERVAL 'infinity'?
Date
Msg-id 201111101928.pAAJScl10637@momjian.us
Whole thread Raw
In response to Re: Is there a good reason we don't have INTERVAL 'infinity'?  (Brar Piening <brar@gmx.de>)
List pgsql-hackers
Brar Piening wrote:
> 
> Josh Berkus wrote:
> > Hackers,
> >
> > Is there a reason why INTERVAL 'infinity' is not implemented?  That is,
> > an interval which is larger than all defined intervals, and which added
> > to any timestamp turns it into 'infinity'.
> >
> > Or is it just Round TUITs?
> 
> Probably the latter.
> There is even a function |isfinite(interval)| which doesn't seem to do 
> anything useful.
> See complaint in 
> http://archives.postgresql.org/message-id/200101241913.f0OJDUu45423@hub.org
> Although the operation used in this complaint isn't obviously defined 
> there certainly are operations that are defined like infinity + infinity 
> = infinity.
> See http://de.wikipedia.org/wiki/Unendlichkeit#Analysis
> (Sorry for linking the german wikipedia - the english text is ways less 
> verbose on this.)

TODO has:
Allow infinite intervals just like infinite timestamps 

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + It's impossible for everything to be true. +


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: IDLE in transaction introspection
Next
From: "Kevin Grittner"
Date:
Subject: Re: const correctness