On Fri, Apr 10, 2026 at 2:48 PM Richard Guo <[email protected]> wrote: > The patch also LGTM. I also checked if has_notnull_forced_var() has > the same issue, but it doesn't: Vars with non-default returning type > only appear in the RETURNING clause, so they never show up in WHERE/ON > clauses.
I pushed the patch after a bit cosmetic tweaks. I also decided to put the test cases in returning.sql, which I think is a better place. Thanks for the report and the patch. - Richard
