Tweak indexscan and seqscan code to arrange that steps from one page to

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 37fa3b6c89abc05f8c4691440a27427db3a6e03b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-04-21T18:24:26Z
Releases: 8.0.0
Tweak indexscan and seqscan code to arrange that steps from one page to
the next are handled by ReleaseAndReadBuffer rather than separate
ReleaseBuffer and ReadBuffer calls.  This cuts the number of acquisitions
of the BufMgrLock by a factor of 2 (possibly more, if an indexscan happens
to pull successive rows from the same heap page).  Unfortunately this
doesn't seem enough to get us out of the recently discussed context-switch
storm problem, but it's surely worth doing anyway.

Files