pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: abedi0501@gmail.com
To: pgsql-bugs@postgresql.org
Cc: abedi0501@gmail.com
Subject: BUG #14944: Error for 6 digit year in date comparision
Date: Mon, 04 Dec 2017 09:18:33 +0000
Message-ID: <20171204091833.27106.81427@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      14944
Logged by:          Akash Bedi
Email address:      abedi0501@gmail.com
PostgreSQL version: 9.5.4
Operating system:   Ubuntu 16/Windows 10
Description:        

I'm noticing errors during date comparison, 

--Below works fine
select '99999-01-01'::date > now();
?column?
----------
 t
(1 row)

--Gives error
select '999999-01-01'::date > now();
ERROR:  date out of range for timestamp

Database allows to store date ranges until 5874897 AD '5874897-01-01'::date
but date comparison fails.
 



view thread (3+ messages)  latest in thread

Message-ID: <20171204091833.27106.81427@wrigleys.postgresql.org>
Permalink:  ../20171204091833.27106.81427@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20171204091833.27106.81427@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: abedi0501@gmail.com
  Subject: Re: BUG #14944: Error for 6 digit year in date comparision
  In-Reply-To: <20171204091833.27106.81427@wrigleys.postgresql.org>
  References: <20171204091833.27106.81427@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox