Skip to main content

Module cte_strategy

Module cte_strategy 

Source
Expand description

Shared CTE scheduling decisions for execution and traversal analysis.

Structs§

ScheduledCte
StatementCteOrder
The materialized WITH items of a statement, split by when they run. PostgreSQL runs a data-modifying item while its reader draws rows from it, and once the primary query has finished ExecPostprocessPlan runs every item no reader drew from to completion, the last defined first.

Functions§

order_statement_ctes
Split scheduled, the items of ctes that a statement materializes in dependency order, into the items that run before its primary query and the items that run after it. primary_references names the items the primary query reads.
schedule_plan_ctes