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 1mYYhV-0005p1-RE for pgsql-general@arkaria.postgresql.org; Thu, 07 Oct 2021 19:05:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYYhU-00074H-5b for pgsql-general@arkaria.postgresql.org; Thu, 07 Oct 2021 19:05:04 +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 1mYYhT-000749-Sl for pgsql-general@lists.postgresql.org; Thu, 07 Oct 2021 19:05:03 +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 1mYYhR-0003MJ-K4 for pgsql-general@lists.postgresql.org; Thu, 07 Oct 2021 19:05:02 +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 197J5013162605; Thu, 7 Oct 2021 15:05:00 -0400 From: Tom Lane To: Gavin Roy cc: pgsql-general@lists.postgresql.org Subject: Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14 In-reply-to: References: Comments: In-reply-to Gavin Roy message dated "Thu, 07 Oct 2021 14:38:02 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <162603.1633633500.1@sss.pgh.pa.us> Date: Thu, 07 Oct 2021 15:05:00 -0400 Message-ID: <162604.1633633500@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Gavin Roy writes: > Our code which works in previous versions of Postgres uses UPDATE RETURNING > and INSERT RETURNING in combination with RETURN QUERY. It appears that in > the parallelism updates, RETURN QUERY now only accepts SELECT queries. Yeah, that's a mistake, previously reported and fixed at https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=e0eba586b regards, tom lane