Make heap_fetch API more consistent by having the buffer remain pinned
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Oct 2004 16:05:03 +0000 (16:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Oct 2004 16:05:03 +0000 (16:05 +0000)
commit83cd2d8b0f1af64846337dd9b34d8e362309bc92
treeb5b35b8dd4492f595b2bf2dad34bbaf3596121de
parent2c66dcf684137fdcc4371fd0aeb736a2f6458c36
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.
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtinsert.c
src/backend/commands/analyze.c