[HACKERS] change_varattnos_of_a_node versus whole-row Vars

2012-06-29 Thread Tom Lane
change_varattnos_of_a_node(), which is used to adjust expressions referencing a parent relation or LIKE source relation to refer to the child relation, ignores whole-row Vars (those with attnum zero). Thus, after processing the expression, the whole-row Var still claims to have the rowtype

Re: [HACKERS] change_varattnos_of_a_node versus whole-row Vars

2012-06-29 Thread Tom Lane
I wrote: change_varattnos_of_a_node(), which is used to adjust expressions referencing a parent relation or LIKE source relation to refer to the child relation, ignores whole-row Vars (those with attnum zero). ... My inclination, especially in the back branches, is to just throw error if