Interface: PlanNode
Defined in: src/observability/QueryPlanAnalyzer.ts:10
A single node extracted from the query plan tree (PostgreSQL JSON format).
Properties
type
type:
string
Defined in: src/observability/QueryPlanAnalyzer.ts:12
Node type e.g. "Seq Scan", "Index Scan", "Hash Join", "Nested Loop"
relation?
optionalrelation?:string
Defined in: src/observability/QueryPlanAnalyzer.ts:14
Relation (table) name, if applicable
startupCost
startupCost:
number
Defined in: src/observability/QueryPlanAnalyzer.ts:16
Planner estimated startup cost
totalCost
totalCost:
number
Defined in: src/observability/QueryPlanAnalyzer.ts:18
Planner estimated total cost
planRows
planRows:
number
Defined in: src/observability/QueryPlanAnalyzer.ts:20
Planner estimated row count
actualRows?
optionalactualRows?:number
Defined in: src/observability/QueryPlanAnalyzer.ts:22
Actual row count returned at runtime (ANALYZE mode only)
actualTimeMs?
optionalactualTimeMs?:number
Defined in: src/observability/QueryPlanAnalyzer.ts:24
Actual total loop time in ms (ANALYZE mode only)
indexName?
optionalindexName?:string
Defined in: src/observability/QueryPlanAnalyzer.ts:26
Index name used by this node, if any
children
children:
PlanNode[]
Defined in: src/observability/QueryPlanAnalyzer.ts:28
Child plan nodes