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 1mhBz1-0001mA-AZ for pgsql-bugs@arkaria.postgresql.org; Sun, 31 Oct 2021 14:38:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mhByx-0007OR-7s for pgsql-bugs@arkaria.postgresql.org; Sun, 31 Oct 2021 14:38:47 +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 1mhByx-0007NS-0L for pgsql-bugs@lists.postgresql.org; Sun, 31 Oct 2021 14:38:47 +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 1mhByp-00081Z-I1 for pgsql-bugs@lists.postgresql.org; Sun, 31 Oct 2021 14:38:45 +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 19VEcZwk926374; Sun, 31 Oct 2021 10:38:36 -0400 From: Tom Lane To: jorge@jrg.com.br cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17259: RETURN QUERY no longer accepts an UPDATE RETURNING In-reply-to: <17259-fc4d4f2e6924cc42@postgresql.org> References: <17259-fc4d4f2e6924cc42@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Sun, 31 Oct 2021 01:11:32 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <926372.1635691115.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 31 Oct 2021 10:38:35 -0400 Message-ID: <926373.1635691115@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > In version 14.0 RETURN QUERY with UPDATE RETURNING in a function is > reporting an error and it works in version 13.4. Thanks for the report! This was already reported and repaired [1], so it should be okay in 14.1. regards, tom lane [1] https://www.postgresql.org/message-id/1F2F75F0-27DF-406F-848D-8B50C7EE= F06A%40gmail.com