Make heap_fetch API more consistent by having the buffer remain pinned

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

Commit: 83cd2d8b0f1af64846337dd9b34d8e362309bc92
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2004-10-26T16:05:03Z
Releases: 8.0.0
Make heap_fetch API more consistent by having the buffer remain pinned
in all cases when keep_buf = true.  This allows ANALYZE's inner loop to
use heap_release_fetch, which saves multiple buffer lookups for the same
page and avoids overestimation of cost by the vacuum cost mechanism.

Files