pgsql: Fix mishandling of OLD/NEW references in subqueries in rule acti

2023-02-25 Thread Dean Rasheed
Fix mishandling of OLD/NEW references in subqueries in rule actions. If a rule action contains a subquery that refers to columns from OLD or NEW, then those are really lateral references, and the planner will complain if it sees such things in a subquery that isn't marked as lateral. However, at

pgsql: Fix mishandling of OLD/NEW references in subqueries in rule acti

2023-02-25 Thread Dean Rasheed
Fix mishandling of OLD/NEW references in subqueries in rule actions. If a rule action contains a subquery that refers to columns from OLD or NEW, then those are really lateral references, and the planner will complain if it sees such things in a subquery that isn't marked as lateral. However, at

pgsql: Fix mishandling of OLD/NEW references in subqueries in rule acti

2023-02-25 Thread Dean Rasheed
Fix mishandling of OLD/NEW references in subqueries in rule actions. If a rule action contains a subquery that refers to columns from OLD or NEW, then those are really lateral references, and the planner will complain if it sees such things in a subquery that isn't marked as lateral. However, at

pgsql: Fix mishandling of OLD/NEW references in subqueries in rule acti

2023-02-25 Thread Dean Rasheed
Fix mishandling of OLD/NEW references in subqueries in rule actions. If a rule action contains a subquery that refers to columns from OLD or NEW, then those are really lateral references, and the planner will complain if it sees such things in a subquery that isn't marked as lateral. However, at

pgsql: Fix mishandling of OLD/NEW references in subqueries in rule acti

2023-02-25 Thread Dean Rasheed
Fix mishandling of OLD/NEW references in subqueries in rule actions. If a rule action contains a subquery that refers to columns from OLD or NEW, then those are really lateral references, and the planner will complain if it sees such things in a subquery that isn't marked as lateral. However, at

pgsql: Fix mishandling of OLD/NEW references in subqueries in rule acti

2023-02-25 Thread Dean Rasheed
Fix mishandling of OLD/NEW references in subqueries in rule actions. If a rule action contains a subquery that refers to columns from OLD or NEW, then those are really lateral references, and the planner will complain if it sees such things in a subquery that isn't marked as lateral. However, at