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 1nh0Fv-0005YS-Cw for pgsql-general@arkaria.postgresql.org; Wed, 20 Apr 2022 02:39:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nh0Fs-00063U-Kf for pgsql-general@arkaria.postgresql.org; Wed, 20 Apr 2022 02:39:44 +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 1nh0Fs-00063E-AB for pgsql-general@lists.postgresql.org; Wed, 20 Apr 2022 02:39:44 +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 1nh0Fo-0004b0-Ts for pgsql-general@lists.postgresql.org; Wed, 20 Apr 2022 02:39:42 +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 23K2dbI52658372; Tue, 19 Apr 2022 22:39:38 -0400 From: Tom Lane To: "David G. Johnston" cc: Bryn Llewellyn , pgsql-general list Subject: Re: =?UTF-8?Q?Re=3A_Unexpected_result_from_ALTER_FUNCTION=E2=80=94_looks_l?= =?UTF-8?Q?ike_a_bug?= In-reply-to: References: <8AC9A37F-99BD-446F-A2F7-B89AD0022774@yugabyte.com> Comments: In-reply-to "David G. Johnston" message dated "Tue, 19 Apr 2022 19:21:19 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2658370.1650422377.1@sss.pgh.pa.us> Date: Tue, 19 Apr 2022 22:39:37 -0400 Message-ID: <2658371.1650422377@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Tue, Apr 19, 2022 at 7:07 PM Bryn Llewellyn > wrote: >> This is the bug. > While I haven't experimented with this for confirmation, what you are > proposing here (set + parallel safe) is an impossible runtime > combination (semantic rule) but perfectly valid to write syntactically. I'm not sure that that's actually disallowed. In any case, Bryn's right, the combination of a SET clause and a PARALLEL clause is implemented incorrectly in AlterFunction. Careless coding :-( regards, tom lane