mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +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:
@@ -1260,6 +1260,7 @@ typedef struct IndexScanState
|
||||
* RelationDesc index relation descriptor
|
||||
* ScanDesc index scan descriptor
|
||||
* VMBuffer buffer in use for visibility map testing, if any
|
||||
* HeapFetches number of tuples we were forced to fetch from heap
|
||||
* ----------------
|
||||
*/
|
||||
typedef struct IndexOnlyScanState
|
||||
@@ -1277,6 +1278,7 @@ typedef struct IndexOnlyScanState
|
||||
Relation ioss_RelationDesc;
|
||||
IndexScanDesc ioss_ScanDesc;
|
||||
Buffer ioss_VMBuffer;
|
||||
long ioss_HeapFetches;
|
||||
} IndexOnlyScanState;
|
||||
|
||||
/* ----------------
|
||||
|
Reference in New Issue
Block a user