From: Robert Haas Date: Tue, 24 Jun 2025 15:41:14 +0000 (-0400) Subject: remove more code not required by the regression tests X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=9f1a6718508e0326a0bd833e77b2f10e8c44a6f8;p=users%2Frhaas%2Fpostgres.git remove more code not required by the regression tests --- diff --git a/contrib/pg_plan_advice/pgpa_join.c b/contrib/pg_plan_advice/pgpa_join.c index fbc4ad9d54..9bf0a71675 100644 --- a/contrib/pg_plan_advice/pgpa_join.c +++ b/contrib/pg_plan_advice/pgpa_join.c @@ -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)