mirror of
https://github.com/postgres/postgres.git
synced 2025-06-30 21:42:05 +03:00
Instrument index-only scans to count heap fetches performed.
Patch by me; review by Tom Lane, Jeff Davis, and Peter Geoghegan.
This commit is contained in:
@ -1012,6 +1012,9 @@ ExplainNode(PlanState *planstate, List *ancestors,
|
||||
if (plan->qual)
|
||||
show_instrumentation_count("Rows Removed by Filter", 1,
|
||||
planstate, es);
|
||||
if (es->analyze)
|
||||
ExplainPropertyLong("Heap Fetches",
|
||||
((IndexOnlyScanState *) planstate)->ioss_HeapFetches, es);
|
||||
break;
|
||||
case T_BitmapIndexScan:
|
||||
show_scan_qual(((BitmapIndexScan *) plan)->indexqualorig,
|
||||
|
Reference in New Issue
Block a user