Skip to content

Commit bc8ac3c

Browse files
committed
Add missing pgstat_count_index_scan(), per Andreas Seltenreich.
1 parent d841cc4 commit bc8ac3c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/access/gin/ginscan.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* 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 $
1212
*-------------------------------------------------------------------------
1313
*/
1414

1515
#include "postgres.h"
1616
#include "access/genam.h"
1717
#include "access/gin.h"
18+
#include "pgstat.h"
1819
#include "utils/memutils.h"
1920

2021

@@ -155,6 +156,8 @@ newScanKey( IndexScanDesc scan ) {
155156

156157
if ( so->nkeys == 0 )
157158
elog(ERROR, "Gin doesn't support full scan due to it's awful inefficiency");
159+
160+
pgstat_count_index_scan(&scan->xs_pgstat_info);
158161
}
159162

160163
Datum

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy