diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-06 02:29:23 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-10-06 02:29:23 +0000 |
| commit | cb8b6618cefa1f87197390ae12709b46f5137a35 (patch) | |
| tree | 6180b2eed06fe60c41ef34e88e672743b0fdb046 /src/backend/postmaster/pgstat.c | |
| parent | b5aad11a1b253bbd45405dc926f1ebef90f8f28c (diff) | |
| download | postgresql-cb8b6618cefa1f87197390ae12709b46f5137a35.tar.gz | |
Revise pgstats stuff to fix the problems with not counting accesses
generated by bitmap index scans. Along the way, simplify and speed up
the code for counting sequential and index scans; it was both confusing
and inefficient to be taking care of that in the per-tuple loops, IMHO.
initdb forced because of internal changes in pg_stat view definitions.
Diffstat (limited to 'src/backend/postmaster/pgstat.c')
| -rw-r--r-- | src/backend/postmaster/pgstat.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c index e53b8a8c92..d03f812476 100644 --- a/src/backend/postmaster/pgstat.c +++ b/src/backend/postmaster/pgstat.c @@ -13,7 +13,7 @@ * * Copyright (c) 2001-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.108 2005/09/24 17:53:14 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/postmaster/pgstat.c,v 1.109 2005/10/06 02:29:17 tgl Exp $ * ---------- */ #include "postgres.h" @@ -1159,17 +1159,11 @@ pgstat_initstats(PgStat_Info *stats, Relation rel) * Initialize data not to count at all. */ stats->tabentry = NULL; - stats->no_stats = FALSE; - stats->heap_scan_counted = FALSE; - stats->index_scan_counted = FALSE; if (pgStatSock < 0 || !(pgstat_collect_tuplelevel || pgstat_collect_blocklevel)) - { - stats->no_stats = TRUE; return; - } tsarr = rel->rd_rel->relisshared ? &SharedTabStat : &RegularTabStat; |
