Documentation
¶
Overview ¶
Package explain provides EXPLAIN query plan generation for the FDW.
This package formats query execution plans in Postgres-compatible format, including cost estimates and row count predictions. It supports generating both default plans and plans marked as unsupported to guide Postgres query planner decisions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Unsupported = Explain{"Unsupported", "irrelevant", expensive, expensive, expensive, expensive}.String()
Unsupported is a pre-formatted EXPLAIN plan with extremely high cost. This is used to discourage Postgres from selecting unsupported query plans.
Functions ¶
This section is empty.
Types ¶
type Explain ¶
type Explain struct {
Operation string
TableName string
StartupCost float32
TotalCost float32
EstimatedRows int32
EstimatedAverageWidthInBytes int32
}
Explain represents a Postgres EXPLAIN query plan with cost and row estimates.
Click to show internal directories.
Click to hide internal directories.