Re: 'Infinity' in date columns?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Ken Winter" <ken(at)sunward(dot)org>
Cc: "PostgreSQL pg-general List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: 'Infinity' in date columns?
Date: 2010-05-17 04:21:57
Message-ID: 3691.1274070117@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Ken Winter" <ken(at)sunward(dot)org> writes:
> The documentation at
> http://www.postgresql.org/docs/8.3/static/datatype-datetime.html seems to
> say that the special value 'infinity' ("later than all other time stamps")
> should work for an date-time column, and the type "date" is listed as among
> the date-time data types.
> But I can't get 'infinity' to work for columns of type "date".

You seem to be carefully reading around the middle column in Table 8-13,
which specifically shows that infinity doesn't work for type date.

Now, if you were to update to Postgres 8.4, it *would* work.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guillaume Lelarge 2010-05-17 05:22:39 Re: Why Performance of SQL Query is *much* Slower in GUI PgAdmin
Previous Message Shoaib Mir 2010-05-17 04:18:13 Re: 'Infinity' in date columns?