Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbc8ac3c

Browse files
committed
Add missing pgstat_count_index_scan(), per Andreas Seltenreich.
1 parentd841cc4 commitbc8ac3c

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)

[8]ページ先頭

©2009-2025 Movatter.jp