Subject: Re: Returning from a rule with extended query protocol

From: Jelte Fennema-Nio <[email-masked]>
Date: Sun, 11 Aug 2024 22:15:41 +0200

On Sun, 11 Aug 2024 at 13:29, Greg Rychlewski <[email-masked]> wrote:
> I was testing creating a rule that uses RETURNING and noticed a difference between the extended query protocol and the simple query protocol. In the former, RETURNING is ignored (at least in my case) and the latter it is respected:

That seems like a bug to me. The simple and extended protocol should
return the same data for the same query. I'm guessing CREATE RULE
isn't often enough for this difference to be noticed earlier. So yeah
please dig through the code and submit a patch to fix this.