Hi Amit,
>Thanks for the report.
>
>This looks to me like a bug of inheritance_planner() that is used for planning inherited UPDATEs till v13.
Thank you for the quick response and detailed explanation!
I'm not familiar with source code around planner, so I really appreciate that.
> adjust_appendrel_attrs() simply copies any Params it finds in the original tree as-is by way of expression_tree_mutator(), though perhaps it should add new ones that refer to the child plan. I'll take a shot at that.
If you work on this, it'd be wonderful because this issue actually occurred in one of my client's system.
(Of course, SQL I wrote is not actual one.)
Best regards,
Takeshi Ideriha