Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2Zih-00HTXA-Oy for pgsql-docs@arkaria.postgresql.org; Mon, 13 Nov 2023 16:23:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r2Zif-00GTHF-S2 for pgsql-docs@arkaria.postgresql.org; Mon, 13 Nov 2023 16:23:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2Zif-00GTH7-KJ for pgsql-docs@lists.postgresql.org; Mon, 13 Nov 2023 16:23:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2Zic-006Esi-I0 for pgsql-docs@lists.postgresql.org; Mon, 13 Nov 2023 16:23:25 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3ADGNGTm2037454; Mon, 13 Nov 2023 11:23:16 -0500 From: Tom Lane To: Erik Wienhold cc: Roman =?utf-8?Q?Fro=C5=82ow?= , pgsql-docs@lists.postgresql.org Subject: Re: T is a mandatory date time separator in RFC3339 but documentation states differently In-reply-to: <7njdkzeco47heg6tglzsm5wmmbb56vd66f7pta6gazb2k52viu@av3wruqnylpp> References: <169974270449.398198.1438250797414790599@wrigleys.postgresql.org> <7njdkzeco47heg6tglzsm5wmmbb56vd66f7pta6gazb2k52viu@av3wruqnylpp> Comments: In-reply-to Erik Wienhold message dated "Mon, 13 Nov 2023 15:29:35 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2037452.1699892596.1@sss.pgh.pa.us> Date: Mon, 13 Nov 2023 11:23:16 -0500 Message-ID: <2037453.1699892596@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Erik Wienhold writes: > On 2023-11-13 15:24 +0100, Erik Wienhold wrote: >> I also noticed that when people say "ISO 8601" they usually mean RFC >> 3389 or some subset of ISO 8601. > Forgot this fine visualization of the differences: > https://ijmacd.github.io/rfc3339-iso8601/ I'm inclined not to change anything here, for a couple of reasons: 1. PG accepts a fairly large number of ISO 8601 variants (not all); not only the RFC 3339 format. So s/ISO 8601/RFC 3339/g would be incorrect. Besides, I think more people know what ISO 8601 is than know what RFC 3339 is, so that change would also be confusing. 2. If ijmacd's pretty graphic is correct, then what we say about 'T' versus space is correct, even if it isn't the whole truth. I'm not quite sure that ijmacd is correct, though, because of this bit in 3339: NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this syntax may alternatively be lower case "t" or "z" respectively. which suggests that 8601 is also case-insensitive. I don't plan to go buy a copy of that spec to find out, though. In any case, we accept 'T', 't', '_', and most other punctuation there, so we should be able to read nearly any plausible variant. regards, tom lane