diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-06-09 18:49:55 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-06-09 18:49:55 +0000 |
commit | 85d72f05167b87bc44464b2eabea8538f1fd1e45 (patch) | |
tree | fc7af5457fa0611971618803ffa6f47396d3a183 /src/include/pgstat.h | |
parent | 7063c46fc18e2987b655b0bc7531128633daac7e (diff) | |
download | postgresql-85d72f05167b87bc44464b2eabea8538f1fd1e45.tar.gz postgresql-85d72f05167b87bc44464b2eabea8538f1fd1e45.zip |
Teach heapam code to know the difference between a real seqscan and the
pseudo HeapScanDesc created for a bitmap heap scan. This avoids some useless
overhead during a bitmap scan startup, in particular invoking the syncscan
code. (We might someday want to do that, but right now it's merely useless
contention for shared memory, to say nothing of possibly pushing useful
entries out of syncscan's small LRU list.) This also allows elimination of
ugly pgstat_discount_heap_scan() kluge.
Diffstat (limited to 'src/include/pgstat.h')
-rw-r--r-- | src/include/pgstat.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/include/pgstat.h b/src/include/pgstat.h index ff050e6e451..da910333531 100644 --- a/src/include/pgstat.h +++ b/src/include/pgstat.h @@ -5,7 +5,7 @@ * * Copyright (c) 2001-2007, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.61 2007/05/27 17:28:36 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pgstat.h,v 1.62 2007/06/09 18:49:55 tgl Exp $ * ---------- */ #ifndef PGSTAT_H @@ -518,12 +518,6 @@ extern void pgstat_initstats(Relation rel); if (pgstat_collect_tuplelevel && (rel)->pgstat_info != NULL) \ (rel)->pgstat_info->t_counts.t_numscans++; \ } while (0) -/* kluge for bitmap scans: */ -#define pgstat_discount_heap_scan(rel) \ - do { \ - if (pgstat_collect_tuplelevel && (rel)->pgstat_info != NULL) \ - (rel)->pgstat_info->t_counts.t_numscans--; \ - } while (0) #define pgstat_count_heap_getnext(rel) \ do { \ if (pgstat_collect_tuplelevel && (rel)->pgstat_info != NULL) \ |