summaryrefslogtreecommitdiff
path: root/src/include/access/relscan.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/access/relscan.h')
-rw-r--r--src/include/access/relscan.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/include/access/relscan.h b/src/include/access/relscan.h
index dc6e0184284..8e0b08b0d94 100644
--- a/src/include/access/relscan.h
+++ b/src/include/access/relscan.h
@@ -151,6 +151,13 @@ typedef struct IndexScanDescData
void *opaque; /* access-method-specific info */
/*
+ * Instrumentation counters that are maintained by every index access
+ * method, for all scan types. These go here because there is no standard
+ * way to access PlanState.instrument during amgettuple calls.
+ */
+ uint64 nsearches; /* total # of index searches */
+
+ /*
* In an index-only scan, a successful amgettuple call must fill either
* xs_itup (and xs_itupdesc) or xs_hitup (and xs_hitupdesc) to provide the
* data returned by the scan. It can fill both, in which case the heap