pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
What does the value 5874897 AD mean? Which year, month, day, please?
2+ messages / 2 participants
[nested] [flat]

* What does the value 5874897 AD mean? Which year, month, day, please?
@ 2019-02-07 12:11 PG Doc comments form <noreply@postgresql.org>
  2019-02-07 15:21 ` RE: What does the value 5874897 AD mean? Which year, month, day, please? Vianello, Daniel A <Daniel.Vianello@charter.com>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Doc comments form @ 2019-02-07 12:11 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: hans@matfyz.cz

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/datatype-datetime.html
Description:

See also
https://stackoverflow.com/questions/29434748/what-does-bc-date-mean-in-postgresql.

Add a note about how the date/timestamp is internally represented, please.
E.g.
https://docs.teradata.com/reader/S0Fw2AVH8ff3MDA0wDOHlQ/dkWLOva_L12uKvSnUcJQsQ.


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* RE: What does the value 5874897 AD mean? Which year, month, day, please?
  2019-02-07 12:11 What does the value 5874897 AD mean? Which year, month, day, please? PG Doc comments form <noreply@postgresql.org>
@ 2019-02-07 15:21 ` Vianello, Daniel A <Daniel.Vianello@charter.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Vianello, Daniel A @ 2019-02-07 15:21 UTC (permalink / raw)
  To: hans@matfyz.cz <hans@matfyz.cz>; pgsql-docs@lists.postgresql.org <pgsql-docs@lists.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.


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-02-07 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-07 12:11 What does the value 5874897 AD mean? Which year, month, day, please? PG Doc comments form <noreply@postgresql.org>
2019-02-07 15:21 ` Vianello, Daniel A <Daniel.Vianello@charter.com>

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