From f3e0b43b6b2c8f1a2fee3468100b2d926fad7284 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 3 Jun 2020 00:05:25 -0400 Subject: Add support for more explain node attributes --- postgres/postgres.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/postgres/postgres.go b/postgres/postgres.go index 5333f8d..c38bb31 100644 --- a/postgres/postgres.go +++ b/postgres/postgres.go @@ -110,6 +110,7 @@ type Plan struct { Alias *string `json:"Alias"` RecheckCond *string `json:"Recheck Cond"` RowsRemovedByIndexRecheck *int `json:"Rows Removed by Index Recheck"` + RowsRemovedByFilter *int `json:"Rows Removed by Filter"` ExactHeapBlocks *int `json:"Exact Heap Blocks"` LossyHeapBlocks *int `json:"Lossy Heap Blocks"` IndexName *string `json:"Index Name"` @@ -117,6 +118,28 @@ type Plan struct { ScanDirection *string `json:"Scan Direction"` ParallelAware *bool `json:"Parallel Aware"` FunctionName *string `json:"Function Name"` + TableFunctionName *string `json:"Table Function Name"` + CTEName *string `json:"CTE Name"` + TuplestoreName *string `json:"Tuplestore Name"` + PartialMode *string `json:"Partial Mode"` + Operation *string `json:"Operation"` + SubplanName *string `json:"Subplan Name"` + CustomPlanProvider *string `json:"Custom Plan Provider"` + Command *string `json:"Command"` + InnerUnique *bool `json:"Inner Unique"` + OrderBy *string `json:"Order By"` + Filter *string `json:"Filter"` + HeapFetches *string `json:"HeapFetches"` + WorkersPlanned *int `json:"Workers Planned"` + WorkersLaunched *int `json:"Workers Launched"` + SingleCopy *bool `json:"Single Copy"` + FunctionCall []string `json:"Function Call"` + TableFunctionCall []string `json:"Table Function Call"` + TIDCond *string `json:"TID Cond"` + JoinFilter *string `json:"Join Filter"` + MergeCond *string `json:"Merge Cond"` + HashCond *string `json:"Hash Cond"` + PresortedKey []string `json:"Presorted Key"` Plans []*Plan `json:"Plans"` } -- cgit v1.2.3