Teach heapam code to know the difference between a real seqscan and the
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2007 18:49:55 +0000 (18:49 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Jun 2007 18:49:55 +0000 (18:49 +0000)
commit85d72f05167b87bc44464b2eabea8538f1fd1e45
treefc7af5457fa0611971618803ffa6f47396d3a183
parent7063c46fc18e2987b655b0bc7531128633daac7e
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.
src/backend/access/heap/heapam.c
src/backend/executor/nodeBitmapHeapscan.c
src/include/access/heapam.h
src/include/access/relscan.h
src/include/pgstat.h