From 8d80b0d980c327edf162e20fdc829559e8aff224 Mon Sep 17 00:00:00 2001 From: Jan Wieck Date: Fri, 22 Jun 2001 19:16:24 +0000 Subject: Statistical system views (yet without the config stuff, but it's hard to keep such massive changes in sync with the tree so I need to get it in and work from there now). Jan --- src/backend/access/index/genam.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backend/access/index/genam.c') diff --git a/src/backend/access/index/genam.c b/src/backend/access/index/genam.c index ee9cea6646c..1115fb828b2 100644 --- a/src/backend/access/index/genam.c +++ b/src/backend/access/index/genam.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/index/genam.c,v 1.27 2001/06/09 18:16:56 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/index/genam.c,v 1.28 2001/06/22 19:16:21 wieck Exp $ * * NOTES * many of the old access method routines have been turned into @@ -48,6 +48,7 @@ #include "postgres.h" #include "access/genam.h" +#include "pgstat.h" /* ---------------------------------------------------------------- * general access method routines @@ -110,6 +111,8 @@ RelationGetIndexScan(Relation relation, ItemPointerSetInvalid(&scan->currentItemData); ItemPointerSetInvalid(&scan->currentMarkData); + pgstat_initstats(&scan->xs_pgstat_info, relation); + /* * mark cached function lookup data invalid; it will be set on first * use -- cgit v1.2.3