Skip to main content

Module correlation

Module correlation 

Source
Expand description

Physical-plan correlation analysis for scalar subquery initialization.

Structs§

CorrelationContext
A single immutable namespace and catalog view used throughout correlation analysis.
DecorrelatedExistsPlan

Traits§

CorrelationRelations
Relation descriptors already retained by the invoking query, including transition relations.

Functions§

decorrelate_exists
Turn a simple correlated equality EXISTS into an uncorrelated key query.
expression_depends_on_outer_row
Whether a scalar expression needs a row outside its declared FROM namespace. Scalar subqueries keep their own local aliases and CTEs; an uncorrelated subquery does not introduce an outer-row dependency.
query_depends_on_outer_row
source_depends_on_current_row
Whether a FROM item needs the calling join’s current row. An explicit LATERAL marker permits references but does not itself require per-row execution. Enclosing-query identities in input remain constant during this join.