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 1qlA2A-001XE6-1o for pgsql-docs@arkaria.postgresql.org; Tue, 26 Sep 2023 15:31:34 +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 1qlA28-00Cuq8-Is for pgsql-docs@arkaria.postgresql.org; Tue, 26 Sep 2023 15:31:32 +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 1qlA28-00Cupn-AN for pgsql-docs@lists.postgresql.org; Tue, 26 Sep 2023 15:31:32 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlA24-007hnj-RE for pgsql-docs@lists.postgresql.org; Tue, 26 Sep 2023 15:31:31 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 156622000D; Tue, 26 Sep 2023 15:31:24 +0000 (UTC) Message-ID: Date: Tue, 26 Sep 2023 17:31:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: JSON type unsupported Content-Language: en-US To: Erki Eessaar , "pgsql-docs@lists.postgresql.org" References: From: Vik Fearing Cc: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: vik@postgresfriends.org List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/26/23 11:33, Erki Eessaar wrote: > Hello > > According to Appendix D. SQL Conformance > > https://www.postgresql.org/docs/current/unsupported-features-sql-standard.html > > the feature T801 JSON data type is unsupported. However, PostgreSQL has data types JSON and JSONB. Here (http://peter.eisentraut.org/blog/2023/04/18/postgresql-and-sql-2023) it is also said that T801 is supported. > > Perhaps there are some technical details that I am not aware of. However, I wanted to point this out. Thank you for pointing this out. Peter's blog is slightly misleading in that we do have the JSON data type, but the T801 feature is far from complete. For example, we do not have the JSON_SERIALIZE(), JSON()[1], JSON_SCALAR() functions. We don't have the IS JSON predicate, or a few other things hiding behind T801. All in all, I would not say we support the JSON data type the way the standard intends, and therefore we should not claim to support T801. [1] This is a fully specified parsing function, not just a cast like we have today. -- Vik Fearing