Skip site navigation (1) Skip section navigation (2)

pgsql: Micro-optimization of markpos() and restrpos() in btree and hash

From: neilc(at)svr1(dot)postgresql(dot)org (Neil Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Micro-optimization of markpos() and restrpos() in btree and hash
Date: 2004-11-17 03:13:40
Message-ID: 20041117031340.B19573A40D8@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Micro-optimization of markpos() and restrpos() in btree and hash indexes.
Rather than using ReadBuffer() to increment the reference count on an
already-pinned buffer, we should use IncrBufferRefCount() as it is
faster and does not require acquiring the BufMgrLock.

Modified Files:
--------------
    pgsql/src/backend/access/hash:
        hash.c (r1.74 -> r1.75)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/hash/hash.c.diff?r1=1.74&r2=1.75)
    pgsql/src/backend/access/nbtree:
        nbtree.c (r1.121 -> r1.122)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/nbtree/nbtree.c.diff?r1=1.121&r2=1.122)

pgsql-committers by date

Next:From: Marc G. FournierDate: 2004-11-17 03:31:58
Subject: Re: pgsql: Remove replicaiton FAQ item.
Previous:From: Neil ConwayDate: 2004-11-17 02:50:07
Subject: pgsql: Document a limitation of COPY's new CSV mode.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group