Re: Returning from a rule with extended query protocol - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Returning from a rule with extended query protocol
Date
Msg-id CAGECzQTLP+c9cOwEoBzHcyP3v9AfjLLThKw+PpTXN+hk=NcVuQ@mail.gmail.com
Whole thread Raw
In response to Returning from a rule with extended query protocol  (Greg Rychlewski <greg.rychlewski@gmail.com>)
List pgsql-hackers
On Sun, 11 Aug 2024 at 13:29, Greg Rychlewski <greg.rychlewski@gmail.com> wrote:
> I was testing creating a rule that uses RETURNING and noticed a difference between the extended query protocol and
thesimple 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.



pgsql-hackers by date:

Previous
From: "Joel Jacobson"
Date:
Subject: Re: Optimize mul_var() for var1ndigits >= 8
Next
From: Tom Lane
Date:
Subject: Re: Returning from a rule with extended query protocol