minor restrpos / markpos optimization - Mailing list pgsql-patches

From Neil Conway
Subject minor restrpos / markpos optimization
Date
Msg-id 1100650802.9430.7.camel@localhost.localdomain
Whole thread Raw
Responses Re: minor restrpos / markpos optimization  (Neil Conway <neilc@samurai.com>)
List pgsql-patches
This patch makes a minor optimization to the restrpos() and markpos()
implementations for btree and hash: to bump the reference count on a
buffer, it is more efficient to use IncrBufferRefCount() than to do a
ReadBuffer (for one thing we needn't acquire the BufMgrLock; we also
don't need to do a hash table lookup etc.)

Barring any objections I will apply to HEAD before end of day.

-Neil


Attachment

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Win32 signals & sockets
Next
From: Andrew Dunstan
Date:
Subject: docs patch - CSV import limitation