plan

package
v0.0.0-...-7936e40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPlanJSON = errors.New("empty plan JSON")
View Source
var ErrInvalidPlanJSON = errors.New("invalid plan JSON")

Functions

This section is empty.

Types

type Node

type Node struct {
	Method             string   `json:"Node Type"`
	Table              string   `json:"Relation Name"`
	Alias              string   `json:"Alias"`
	Index              string   `json:"Index Name"`
	ParentRelationship string   `json:"Parent Relationship"`
	PlanCost           float64  `json:"Total Cost"`
	PlanRows           int      `json:"Plan Rows"`
	PlanWidth          int      `json:"Plan Width"`
	ActualTotalTime    float64  `json:"Actual Total Time"`
	ActualRows         int      `json:"Actual Rows"`
	ActualLoops        int      `json:"Actual Loops"`
	Filter             string   `json:"Filter"`
	JoinFilter         string   `json:"Join Filter"`
	HashCond           string   `json:"Hash Cond"`
	IndexCond          string   `json:"Index Cond"`
	RecheckCond        string   `json:"Recheck Cond"`
	BuffersHit         int      `json:"Shared Hit Blocks"`
	BuffersRead        int      `json:"Shared Read Blocks"`
	MemoryUsage        int      `json:"Peak Memory Usage"`
	HashBuckets        int      `json:"Hash Buckets"`
	HashBatches        int      `json:"Hash Batches"`
	SortKey            []string `json:"Sort Key"`
	SortMethod         string   `json:"Sort Method"`
	SortSpaceUsed      int      `json:"Sort Space Used"`
	SortSpaceType      string   `json:"Sort Space Type"`
	Children           []Node   `json:"Plans"`
}

type Plan

type Plan struct {
	PlanningTime  float64 `json:"Planning Time"`
	ExecutionTree Node    `json:"Plan"`
}

func New

func New(r io.Reader) (Plan, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL