From: | PG Doc comments form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-docs(at)lists(dot)postgresql(dot)org |
Cc: | y(dot)saburov(at)gmail(dot)com |
Subject: | Mysteries of the future |
Date: | 2024-04-10 15:00:22 |
Message-ID: | 171276122213.681.531905738590773705@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-docs |
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/16/functions-formatting.html
Description:
I'm not sure that there will be 31 days in 11 months; although postgresql
probably knows better what will happen in 20000
For example (with the year 20000): to_date('200001131', 'YYYYMMDD') will be
interpreted as a 4-digit year; instead use a non-digit separator after the
year, like to_date('20000-1131', 'YYYY-MMDD') or to_date('20000Nov31',
'YYYYMonDD').
https://www.postgresql.org/docs/current/functions-formatting.html
```sql
SELECT to_date('20000-1131', 'YYYY-MMDD');
ERROR: 22008: date/time field value out of range: "20000-1131"
LOCATION: DateTimeParseError, datetime.c:4021
```
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-04-11 14:20:38 | Re: Mysteries of the future |
Previous Message | Daniel Gustafsson | 2024-04-10 12:11:17 | Re: tools.ietf.org is decommissioned and our links are redirected |