Bounded join search
PostgreSQL's dynamic programming does build bushy trees, but only between relations linked by a join clause, and it switches to a genetic algorithm at 12+ relations (geqo_threshold). Subquery pull-up and aggregate placement are fixed before join search starts, and every choice rides on the planner's row estimates.
-- 6+ way joins like TPC-DS Q25
-- join order hinges on intermediate row estimates
SELECT ... FROM store_sales
JOIN store_returns ON ...
JOIN catalog_sales ON ...
JOIN customer ON ...
JOIN item ON ...
JOIN date_dim ON ...
GROUP BY ...;