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

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

From
neilc@svr1.postgresql.org (Neil Conway)
Date:
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)