Re: [BUGS] bug in timestamp and out of range values - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] bug in timestamp and out of range values
Date
Msg-id 26714.1162534690@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] bug in timestamp and out of range values  (Robert Treat <xzilla@users.sourceforge.net>)
List pgsql-hackers
Robert Treat <xzilla@users.sourceforge.net> writes:
> I'm not concerned about to_date so much as I am that timestamp_in lets you 
> store values you can't read with timestamp_out.

Your example does not demonstrate any such thing.  What it demonstrates
is that to_date will let an out-of-range date into the system, not that
timestamp_in will.  Counterexample:

regression=# select '4714-01-27 BC'::timestamp;
ERROR:  timestamp out of range: "4714-01-27 BC"
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: [BUGS] bug in timestamp and out of range values
Next
From: Tom Lane
Date:
Subject: Re: "recovering prepared transaction" after server restart message