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 1lXLgC-0004uT-TM for pgsql-committers@arkaria.postgresql.org; Fri, 16 Apr 2021 10:26:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXLgB-0003U4-Qp for pgsql-committers@arkaria.postgresql.org; Fri, 16 Apr 2021 10:26:27 +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 1lXLgB-0003Tx-5K for pgsql-committers@lists.postgresql.org; Fri, 16 Apr 2021 10:26:27 +0000 Received: from forward3-smtp.messagingengine.com ([66.111.4.237]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXLg6-0006BW-WC for pgsql-committers@lists.postgresql.org; Fri, 16 Apr 2021 10:26:26 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailforward.nyi.internal (Postfix) with ESMTP id CB60F1940B1B; Fri, 16 Apr 2021 06:26:19 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Fri, 16 Apr 2021 06:26:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=qilPXYRvZbOzifJt7XA/Q3t9NvkwGohrrzq/VMabM 8s=; b=oDS1+m1lIOG9fQYghuiNhmBJxESYrkz3DJYiOuNPLZ0CzfPAqIuVq7/7e lbOlPPSbkw2qF6AQo6/wr63FetPFc2AdZjrgUQ2TbCSq6N3gPdYxPDzc3ua4qVPc v0E7/cF87OMlo/Ktd4ghqpWvOSRQpzn7qkivv2UqgDkWoPi9EI+DraK+uqrgwEGj r06lhs3rrFBNNhCw/+UK1i+QZ8NUVByaCq6ug0QvGeaViQp4FZth5TULYzjDB1Ax OxVpY9Z/mQrHJu7DaKrjz5dBnVP+hKmEDOQQxMA7/f0voUDioJWmNvDFB/eJMKDM +eprHKXHOkHZf/O3R0WXCK4X5M46A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudelhedgvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepleevheehueeiudeiteei tdekueetleefteejffeiffdugedvffdvffdtiedvueeknecukfhppeelfedrvddtvddrvd ehfedrudegfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhr ohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtoh hm X-ME-Proxy: Received: from laptop206oxuk.local (p5dcafd8f.dip0.t-ipconnect.de [93.202.253.143]) by mail.messagingengine.com (Postfix) with ESMTPA id 8E3D6240057; Fri, 16 Apr 2021 06:26:18 -0400 (EDT) Subject: Re: pgsql: SQL-standard function body To: Laurenz Albe References: <7466db64eb6abae93e583faf8ca4004d60c163c4.camel@cybertec.at> <823c7393-a2ca-c44a-c57a-b5ff84c3de28@enterprisedb.com> From: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Message-ID: Date: Fri, 16 Apr 2021 12:26:16 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12.04.21 21:00, Laurenz Albe wrote: >>> Here is an improved patch, which treats END in the same fashion >>> (not properly indented for readability). >> >> Thanks, I took another look at this and augmented your change with a >> change that tracks whether the statement starts with CREATE [OR REPLACE] >> {FUNCTION|PROCEDURE}. That should make it pretty safe. What do you think? > > Thanks, that is fine with me and more than I asked for. > That should definitely exclude all false positive matches. committed