RE: What does the value 5874897 AD mean? Which year, month, day, please?

From: "Vianello, Daniel A" <Daniel(dot)Vianello(at)charter(dot)com>
To: "hans(at)matfyz(dot)cz" <hans(at)matfyz(dot)cz>, "pgsql-docs(at)lists(dot)postgresql(dot)org" <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: RE: What does the value 5874897 AD mean? Which year, month, day, please?
Date: 2019-02-07 15:21:31
Message-ID: 2ba5f73f6de84b23bd66c183462a4acf@NCEMEXGP001.CORP.CHARTERCOM.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

> What does the value 5874897 AD mean? Which year, month, day, please?

The maximum allowed date (not timestamp) is Dec 31st in the year 5874897, which you can test with the query: select '5874897-12-31'::date; and select '5874897-12-31'::date + interval '1 day'; The latter query fails with "Error: date out of range for timestamp".

I logged nearly this same response for you on StackOverflow, too.

E-MAIL CONFIDENTIALITY NOTICE:
The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Jürgen Purtz 2019-02-07 17:11:08 Re: First SVG graphic
Previous Message PG Doc comments form 2019-02-07 14:31:13 Typo in Table 8.7 bytea Literal Escaped Octets