Re: Ambiguous language in Table 8.13. Special Date/Time Inputs [EXT]
"Jonathan S. Katz" <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.devel.documentation |
|---|---|
| Message-ID | <[email protected]> |
On 7/10/19 6:13 AM, David Harper wrote: >> I actually agree with your opinion that "midnight" is fine. >> That text has been that way for over fifteen years[1], and >> nobody's complained before that it was ambiguous. > > Conversely, how many users over the past fifteen years have read that table, and then felt compelled (as I did) to run a query such as > > select 'today'::timestamp,'yesterday'::timestamp,'tomorrow'::timestamp; > > on their PostgreSQL cluster to clear the ambiguity for themselves? I've heard of one, but only just recently :) If we were to s/midnight/00:00:00/ we'd probably want to do it everywhere midnight appears. This occurs in a few places in the docs: https://www.postgresql.org/docs/current/functions-formatting.html (SSSS) https://www.postgresql.org/docs/current/protocol-replication.html (XlogData section) and there are some various code comments as well. Count me as a +0 vote, as I've always interpreted it the way Bruce & Tom said upthread, but if we want to change it I can write a patch. Jonathan
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+oS2la8r95ogZD/x8QSccp8cZScFAl0mIS8ACgkQ8QSccp8c ZSfTLhAArKhg/zApGyqT24cjsLnIybUsq1L3HH+vuorKhnsKOcm4putV2I2ytvrE YL6IeEYWQVNofcNYCKLzBxXp9EODeAAH+sjX+gRhoChpOf52uPdjmcFSPcPddAEa gyv37Cy1/CnewN2UnbYQcx/QrjgpEXMVX69HDrBip7D7kbz1g3OxibKbpxktHmDO YzPEB3YiJukRQHhtPRLiuoIqUsRd9otw31QTAEzukAhtvjTOjqx9eG0DkwG4kCaN ap/9qn6p0gHzOccEtpcpanLeBS6jsVXTVf5lYaVKMI2DG/ayRs7L3sj86yMUWOzE /dM2WFra6ASlIp97sHSrwxC2wydeavr9Pw5ESuZN7GAd0Pxm9bdTfs/gJOkT48cv HTeBFKh8Eg0/6OrXxU4ISy3Q9YjFjUVRDNWJEYh8Fok92aVIr/q2HRV1LNIDM7S/ wIILdThfVxYGf4GZkrYwxbbf3OvTXiNr+yfOz0AM3Lem5RtwtO4UW83NwCx3sJLC nUyooKS1E8vbAIyhrXY/CIEe4vQUoy3mx1/e49sDACzYK9LrAAWB3vlTBl4K5+BG I51Uz0/qw1DMoMulGr/ba3wantT5fHKbrU6Szt2DxM4NulweAm+iXtVvDwRiIhf9 iXjLg8T52OhdBskE0XHZiXorRK/hVJpBGlQ782O48lgn4qvNoN8= =FtHA -----END PGP SIGNATURE-----