Re: [HACKERS] Is there a good reason we don't have INTERVAL 'infinity'?

2011-11-10 Thread Bruce Momjian
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.f0ojduu45...@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  br...@momjian.ushttp://momjian.us
  EnterpriseDB http://enterprisedb.com

  + It's impossible for everything to be true. +

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] Is there a good reason we don't have INTERVAL 'infinity'?

2011-11-03 Thread kris
On 2 November 2011 16:35, Brar Piening b...@gmx.de wrote:
 See http://de.wikipedia.org/wiki/Unendlichkeit#Analysis
 (Sorry for linking the german wikipedia - the english text is ways less
 verbose on this.)

Google Translate has come a very long way.

I can read that whole section easily with my brain automatically
fixing up the few grammatical errors that Google doesn't get
quite right.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] Is there a good reason we don't have INTERVAL 'infinity'?

2011-11-01 Thread Josh Berkus
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?

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


Re: [HACKERS] Is there a good reason we don't have INTERVAL 'infinity'?

2011-11-01 Thread Brar Piening


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.f0ojduu45...@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.)


Regards,

Brar