pgsql: postgres_fdw: Avoid pulling up restrict infos from subqueries

2025-03-24 Thread Alexander Korotkov
postgres_fdw: Avoid pulling up restrict infos from subqueries Semi-join joins below left/right join are deparsed as subqueries. Thus, we can't refer to subqueries vars from upper relations. This commit avoids pulling conditions from them. Reported-by: Robins Tharakan Bug: #18852 Discussion: ht

pgsql: postgres_fdw: Avoid pulling up restrict infos from subqueries

2025-03-24 Thread Alexander Korotkov
postgres_fdw: Avoid pulling up restrict infos from subqueries Semi-join joins below left/right join are deparsed as subqueries. Thus, we can't refer to subqueries vars from upper relations. This commit avoids pulling conditions from them. Reported-by: Robins Tharakan Bug: #18852 Discussion: ht