Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdGWG-00EFHQ-8k for pgsql-hackers@arkaria.postgresql.org; Sun, 11 Aug 2024 21:54:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sdGWE-00CgeP-9d for pgsql-hackers@arkaria.postgresql.org; Sun, 11 Aug 2024 21:54:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdGWD-00CgeH-Vq for pgsql-hackers@lists.postgresql.org; Sun, 11 Aug 2024 21:54:29 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sdGWB-004L3B-Gc for pgsql-hackers@lists.postgresql.org; Sun, 11 Aug 2024 21:54:29 +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 47BLsPjq059494; Sun, 11 Aug 2024 17:54:25 -0400 From: Tom Lane To: Greg Rychlewski cc: pgsql-hackers@lists.postgresql.org Subject: Re: Returning from a rule with extended query protocol In-reply-to: References: Comments: In-reply-to Greg Rychlewski message dated "Sun, 11 Aug 2024 07:29:25 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <59492.1723413265.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 11 Aug 2024 17:54:25 -0400 Message-ID: <59493.1723413265@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Greg Rychlewski writes: > I was testing creating a rule that uses RETURNING and noticed a differen= ce > between the extended query protocol and the simple query protocol. In th= e > former, RETURNING is ignored (at least in my case) and the latter it is > respected: I think this might be the same issue recently discussed here: https://www.postgresql.org/message-id/flat/1df84daa-7d0d-e8cc-4762-85523e4= 5e5e7%40mailbox.org That discussion was leaning towards the idea that the cost-benefit of fixing this isn't attractive and we should just document the discrepancy. However, with two reports now, maybe we should rethink. regards, tom lane