File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.3 2006/07/14 14:52:16 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.4 2006/08/03 15:22:09 tgl Exp $
12
12
*-------------------------------------------------------------------------
13
13
*/
14
14
15
15
#include "postgres.h"
16
16
#include "access/genam.h"
17
17
#include "access/gin.h"
18
+ #include "pgstat.h"
18
19
#include "utils/memutils.h"
19
20
20
21
@@ -155,6 +156,8 @@ newScanKey( IndexScanDesc scan ) {
155
156
156
157
if ( so -> nkeys == 0 )
157
158
elog (ERROR , "Gin doesn't support full scan due to it's awful inefficiency" );
159
+
160
+ pgstat_count_index_scan (& scan -> xs_pgstat_info );
158
161
}
159
162
160
163
Datum
You can’t perform that action at this time.
0 commit comments