Re: Why overlaps is not working

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Andrus <eetasoft(at)online(dot)ee>, pgsql-general(at)postgresql(dot)org
Subject: Re: Why overlaps is not working
Date: 2006-11-23 16:57:23
Message-ID: 766418.47302.qm@web31808.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> If my database contains dates greater than DATE '9999-12-31' then this
> check fails.
>
> This is why I'm searching for a real MAX_DATE value in Postgres.
>
> It would be nice if there will be MAX_DATE constant in Postgres or some one
> row system table contains MAX_DATE value.

through expermentation I came up with:

logs=# select '5874897-12-31'::date;
date
---------------
5874897-12-31
(1 row)

logs=# select '5874898-12-31'::date;
ERROR: date out of range: "5874898-12-31"

Regards,

Richard Broersma Jr
l

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Arnaud Lesauvage 2006-11-23 16:57:58 Re: COPY FROM : out of memory
Previous Message A. Kretschmer 2006-11-23 16:52:09 Re: A generic trigger to log chanes on database tables