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 1oWFaN-0007HU-Aa for pgsql-docs@arkaria.postgresql.org; Thu, 08 Sep 2022 11:20:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWFaM-0008Vu-6R for pgsql-docs@arkaria.postgresql.org; Thu, 08 Sep 2022 11:20:42 +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 1oWFaL-0008Vk-6u for pgsql-docs@lists.postgresql.org; Thu, 08 Sep 2022 11:20:41 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWFaH-0003Jk-3I for pgsql-docs@lists.postgresql.org; Thu, 08 Sep 2022 11:20:40 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E1B755C00CC; Thu, 8 Sep 2022 07:20:34 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 08 Sep 2022 07:20:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1662636034; x= 1662722434; bh=3r/NVNyxsSmi+dHVlZ/KSYKaxu0eYZ0wEnDBm6GbXZ0=; b=t Jko0YDZ6r+LcdOrrUoT7r7l6vpKI79fI+JjoMrcVLbhVQzg64eNu89qQDBUtZyFm a/npiL4dFuTkEvSn360K+ZOWXTeoHWkgD1YNidRxHmUN12cEoCKDLR3807YIo6gw DgoLC41eKM1FDSFIaivcohRWsBLyVhOgbMw4bDipjeiU0WQjt5cB2xQ2077MjQVY F611O69yQd4y9RbB/onoB7+L7PYtDlHKCGd6exIpiOAZmAvpboYbbrrjIb5G3+e3 tQJJZP81tuy+QYyaR9qMCZYJFhAmWrW3qW31eRhDHa8GUkbvqZPz0ysI+ho82rOO vGy8KFRfSOb1rcV7N328Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtvddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeehleffgeegudejteei hfelteduvdeifffhffdvjedvffegjeekudeludehudeifeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Sep 2022 07:20:33 -0400 (EDT) Message-ID: Date: Thu, 8 Sep 2022 13:20:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: SQL-standard function bodies and creating SECURITY DEFINER routines securely Content-Language: en-US To: Bruce Momjian , Tom Lane Cc: Erki Eessaar , "pgsql-docs@lists.postgresql.org" References: <1408823.1660678462@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 01.09.22 03:11, Bruce Momjian wrote: > On Tue, Aug 16, 2022 at 03:38:13PM -0400, Bruce Momjian wrote: >> On Tue, Aug 16, 2022 at 03:34:22PM -0400, Tom Lane wrote: >>> Bruce Momjian writes: >>>> I have written the attached patch to mention this issue about sql_body >>>> functions. >>> >>> Spell-check, please. Seems OK otherwise. >> >> Just when I think I didn't add enough text to warrant a spell check. >> :-( Updated patch attached. > > Patch applied back to PG 10. Thanks. This feature is new in PG 14, so backpatching further than that doesn't make sense.