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 1mLU1U-0000Lo-Kd for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Sep 2021 17:27:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mLU1T-0005TY-Gp for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Sep 2021 17:27:39 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLU1T-0005TL-9B for pgsql-hackers@lists.postgresql.org; Wed, 01 Sep 2021 17:27:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mLU1R-00087L-9N for pgsql-hackers@lists.postgresql.org; Wed, 01 Sep 2021 17:27:38 +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 181HRZkJ2102172; Wed, 1 Sep 2021 13:27:35 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-hackers@lists.postgresql.org Subject: Re: Converting contrib SQL functions to new style In-reply-to: <70edea10-6cfe-e83a-5fd5-c290a95abdb7@enterprisedb.com> References: <3395418.1618352794@sss.pgh.pa.us> <70edea10-6cfe-e83a-5fd5-c290a95abdb7@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Wed, 01 Sep 2021 09:26:14 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2102170.1630517255.1@sss.pgh.pa.us> Date: Wed, 01 Sep 2021 13:27:35 -0400 Message-ID: <2102171.1630517255@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 14.04.21 00:26, Tom Lane wrote: >> Attached are some draft patches to convert almost all of the >> contrib modules' SQL functions to use SQL-standard function bodies. > This first patch is still the patch of record in CF 2021-09, but from > the subsequent discussion, it seems more work is being contemplated. Yeah, it looks like we already did the unconditionally-safe part (i.e. making initdb-created SQL functions use new style, cf 767982e36). The rest of this is stuck pending investigation of the ideas about making new-style function creation safer when the creation-time path isn't secure, so I suppose we should mark it RWF rather than leaving it in the queue. Will go do that. regards, tom lane