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 1soTFD-00BV7V-Cc for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Sep 2024 19:43:16 +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 1soTFB-006o1p-Qj for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Sep 2024 19:43:13 +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 1soTFB-006ny5-Gd for pgsql-hackers@lists.postgresql.org; Wed, 11 Sep 2024 19:43:13 +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 1soTF8-000hLA-3n for pgsql-hackers@lists.postgresql.org; Wed, 11 Sep 2024 19:43:12 +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 48BJh5WE3895838; Wed, 11 Sep 2024 15:43:05 -0400 From: Tom Lane To: "David E. Wheeler" cc: Andrew Dunstan , Peter Eisentraut , jian he , PostgreSQL Hackers Subject: Re: Document DateStyle effect on jsonpath string() In-reply-to: <6B388D57-0981-47C3-AD08-7338EE57F0E1@justatheory.com> References: <56955B33-6959-4FDA-A459-F00363ECDFEE@justatheory.com> <4D874C72-8939-4083-8336-AB114D9E29AD@justatheory.com> <3541398.1725994308@sss.pgh.pa.us> <3654686.1725999372@sss.pgh.pa.us> <5e8879d0-a3c8-4be2-950f-d83aa2af953a@eisentraut.org> <3811774.1726063865@sss.pgh.pa.us> <3824427.1726067484@sss.pgh.pa.us> <5801E26B-E2AB-4BA3-8B69-EF8837389284@justatheory.com> <3832087.1726070787@sss.pgh.pa.us> <3835867.1726072002@sss.pgh.pa.us> <3892235.1726081715@sss.pg! h.pa.us> <6B388D57-0981-47C3-AD08-7338EE57F0E1@justatheory.com> Comments: In-reply-to "David E. Wheeler" message dated "Wed, 11 Sep 2024 15:20:50 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3895836.1726083785.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 11 Sep 2024 15:43:05 -0400 Message-ID: <3895837.1726083785@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David E. Wheeler" writes: > Should it use the database-native stringification standard or the jsonpa= th stringification standard? In the case of the former, output should omit= the =E2=80=9CT=E2=80=9D time separator and simplify the time zone `07:00`= to `07`. But if it=E2=80=99s the latter case, then it=E2=80=99s good as i= s. Seems to me it should be the jsonpath convention. If the spec does require any specific spelling, surely it must be that one. regards, tom lane