Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqmYW-0008LA-VP for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 23:54:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqmYV-00026I-Ed for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 23:54:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqmYV-00026B-7f for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2020 23:54:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqmYS-0003Ly-8T for pgsql-hackers@postgresql.org; Wed, 01 Jul 2020 23:54:18 +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 061NsBml815269; Wed, 1 Jul 2020 19:54:11 -0400 From: Tom Lane To: Thomas Munro cc: Robert Haas , Peter Eisentraut , pgsql-hackers Subject: Re: SQL-standard function body In-reply-to: References: <1c11f1eb-f00c-43b7-799d-2d44132c02d7@2ndquadrant.com> Comments: In-reply-to Thomas Munro message dated "Thu, 02 Jul 2020 10:56:24 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <815267.1593647651.1@sss.pgh.pa.us> Date: Wed, 01 Jul 2020 19:54:11 -0400 Message-ID: <815268.1593647651@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thomas Munro writes: > On Wed, Jul 1, 2020 at 5:58 AM Robert Haas wrote: >> With what other implementations is it compatible? > Judging by the Wikipedia article[1], it sounds like at least DB2 and > MySQL/MariaDB are purposely striving for conformance. > [1] https://en.wikipedia.org/wiki/SQL/PSM but ... but ... but ... that's about SQL/PSM, which is not this. Having said that, I wonder whether this work could be repurposed to be the start of a real SQL/PSM implementation. There's other stuff in SQL/PSM, but a big part of it is routines that are written with syntax like this. regards, tom lane