remove more code not required by the regression tests
authorRobert Haas <rhaas@postgresql.org>
Tue, 24 Jun 2025 15:41:14 +0000 (11:41 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 24 Jun 2025 15:41:14 +0000 (11:41 -0400)
contrib/pg_plan_advice/pgpa_join.c

index fbc4ad9d541dd351a0d4bfbc435bd2be4cbdcb13..9bf0a7167573710c3ffb933dbac86a3fdf751781 100644 (file)
@@ -446,9 +446,6 @@ pgpa_decompose_join(PlannedStmt *pstmt, Plan *plan,
 
                if (elidedouter == NULL && is_sorting_plan(outerplan))
                        elidedouter = pgpa_descend_node(pstmt, &outerplan);
-
-               if (elidedouter == NULL && is_result_node_with_child(outerplan))
-                       elidedouter = pgpa_descend_node(pstmt, &outerplan);
        }
 
        if (elidedinner == NULL &&
@@ -458,9 +455,6 @@ pgpa_decompose_join(PlannedStmt *pstmt, Plan *plan,
 
                if (elidedinner == NULL && is_sorting_plan(innerplan))
                        elidedinner = pgpa_descend_node(pstmt, &innerplan);
-
-               if (elidedinner == NULL && is_result_node_with_child(innerplan))
-                       elidedinner = pgpa_descend_node(pstmt, &innerplan);
        }
 
        if (elidedouter == NULL)