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 an expression needs a row outside its FROM namespace; nested subqueries retain their local aliases and CTEs.
expression_depends_on_outer_row_with_control
Borrow the scalar and its original query arena while admitting lexical namespace scratch before allocation.
query_depends_on_outer_row
query_depends_on_outer_row_with_control
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.