pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems

pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems

pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems

pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems

pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems

pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems

pgsql: Fix miscomputation of direct_lateral_relids for join relations.

2020-11-30 Thread Tom Lane
Fix miscomputation of direct_lateral_relids for join relations. If a PlaceHolderVar is to be evaluated at a join relation, but its value is only needed there and not at higher levels, we neglected to update the joinrel's direct_lateral_relids to include the PHV's source rel. This causes problems