Re: infinity interval

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Gerhard Heift <ml-postgresql-20081012-3518(at)gheift(dot)de>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: infinity interval
Date: 2008-12-21 03:30:29
Message-ID: 200812210330.mBL3UTH11436@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gerhard Heift wrote:
> how can I store an infinity value into an interval? I want to store
> offsets to a timestamp, and for some cases i need +infinity and
> -infinity as result.
>
> I want to make something like this:
> SELECT now() + 'infinity'::interval;
>
> This should return 'infinity'::timestamp.
>
> Is it possible?

TODO has:

o Allow infinite intervals just like infinite timestamps

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Herouth Maoz 2008-12-21 09:49:18 Re: Copy/delete issue
Previous Message Martin Gainty 2008-12-21 01:27:45 Re: infinity interval