Hello all,
While digging the code I found out quite interesting comment in
src/backend/access/heap/hio.c before function RelationPutHeapTupleAtEnd
* Eventually, we should cache the number of blocks in a relation somewhere.* Until that time, this code will have to do
anlseek to determine the number* of blocks in a relation.
As far as I can see there's field rd_nblocks in Relation.
Question: is this field properly updated? Could it be used instead of RelationGetNumberOfBlocks
which calls lseek.
--
Sincerely Yours,
Denis Perchine
----------------------------------
E-Mail: dyp@perchine.com
HomePage: http://www.perchine.com/dyp/
FidoNet: 2:5000/120.5
----------------------------------