Tagged articles
1 articles
Page 1 of 1
ITPUB
ITPUB
Dec 12, 2017 · Databases

Understanding PostgreSQL’s Subquery Planner: How Query Optimization Works

This article explains how PostgreSQL transforms and rewrites query trees, why a completed transform‑rewrite tree may not be optimal, and details the subquery_planner’s role, tuple_fraction handling, and the step‑by‑step logical optimization process used to generate efficient execution plans.

Planner HookPostgreSQLSQL
0 likes · 7 min read
Understanding PostgreSQL’s Subquery Planner: How Query Optimization Works