pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vianello, Daniel A <Daniel.Vianello@charter.com>
To: hans@matfyz.cz <hans@matfyz.cz>
To: pgsql-docs@lists.postgresql.org <pgsql-docs@lists.postgresql.org>
Subject: RE: What does the value 5874897 AD mean? Which year, month, day, please?
Date: Thu, 7 Feb 2019 15:21:31 +0000
Message-ID: <2ba5f73f6de84b23bd66c183462a4acf@NCEMEXGP001.CORP.CHARTERCOM.com> (raw)
In-Reply-To: <154954146564.1294.13684654750312708212@wrigleys.postgresql.org>
References: <154954146564.1294.13684654750312708212@wrigleys.postgresql.org>

> 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.


view thread (2+ messages)

Message-ID: <2ba5f73f6de84b23bd66c183462a4acf@NCEMEXGP001.CORP.CHARTERCOM.com>
Permalink:  ../2ba5f73f6de84b23bd66c183462a4acf@NCEMEXGP001.CORP.CHARTERCOM.com/
Also on:    postgresql.org/message-id/2ba5f73f6de84b23bd66c183462a4acf@NCEMEXGP001.CORP.CHARTERCOM.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: Daniel.Vianello@charter.com, hans@matfyz.cz, pgsql-docs@lists.postgresql.org
  Subject: RE: What does the value 5874897 AD mean? Which year, month, day, please?
  In-Reply-To: <2ba5f73f6de84b23bd66c183462a4acf@NCEMEXGP001.CORP.CHARTERCOM.com>

* 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