mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove very ancient tuple-counting infrastructure (IncrRetrieved() and
friends). This code has all been ifdef'd out for many years, and doesn't seem to have any prospect of becoming any more useful in the future. EXPLAIN ANALYZE is what people use in practice, and I think if we did want process-wide counters we'd be more likely to put in dtrace events for that than try to resurrect this code. Get rid of it so as to have one less detail to worry about while refactoring execMain.c.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.81 2009/06/11 14:48:53 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/gist/gistget.c,v 1.82 2009/10/08 22:34:57 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -388,8 +388,6 @@ gistindex_keytest(IndexTuple tuple,
|
||||
giststate = so->giststate;
|
||||
p = BufferGetPage(so->curbuf);
|
||||
|
||||
IncrIndexProcessed();
|
||||
|
||||
scan->xs_recheck = false;
|
||||
|
||||
/*
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/hash/hashutil.c,v 1.60 2009/06/11 14:48:53 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/hash/hashutil.c,v 1.61 2009/10/08 22:34:57 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -38,11 +38,7 @@ _hash_checkqual(IndexScanDesc scan, IndexTuple itup)
|
||||
TupleDesc tupdesc = RelationGetDescr(scan->indexRelation);
|
||||
ScanKey key = scan->keyData;
|
||||
int scanKeySize = scan->numberOfKeys;
|
||||
#endif
|
||||
|
||||
IncrIndexProcessed();
|
||||
|
||||
#ifdef NOT_USED
|
||||
while (scanKeySize > 0)
|
||||
{
|
||||
Datum datum;
|
||||
|
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtutils.c,v 1.93 2009/01/05 17:14:28 alvherre Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/nbtree/nbtutils.c,v 1.94 2009/10/08 22:34:57 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -819,8 +819,6 @@ _bt_checkkeys(IndexScanDesc scan,
|
||||
|
||||
tuple = (IndexTuple) PageGetItem(page, iid);
|
||||
|
||||
IncrIndexProcessed();
|
||||
|
||||
tupdesc = RelationGetDescr(scan->indexRelation);
|
||||
so = (BTScanOpaque) scan->opaque;
|
||||
keysz = so->numberOfKeys;
|
||||
|
Reference in New Issue
Block a user