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

From neilc@svr1.postgresql.org (Neil Conway)
Subject pgsql: Micro-optimization of markpos() and restrpos() in btree and hash
Date
Msg-id 20041117031340.B19573A40D8@svr1.postgresql.org
Whole thread Raw
List 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:

Previous
From: neilc@svr1.postgresql.org (Neil Conway)
Date:
Subject: pgsql: Document a limitation of COPY's new CSV mode.
Next
From: "Marc G. Fournier"
Date:
Subject: Re: pgsql: Remove replicaiton FAQ item.