heapam: Pass number of required pages to RelationGetBufferForTuple()
authorAndres Freund <[email protected]>
Thu, 6 Apr 2023 21:18:24 +0000 (14:18 -0700)
committerAndres Freund <[email protected]>
Thu, 6 Apr 2023 23:17:16 +0000 (16:17 -0700)
commit5279e9db8e8da3c310c0068da2de98df5a714b2e
treee38b8127380623775b00564c38f65029543f5956
parent7d71d3dd080b9b147402db3365fe498f74704231
heapam: Pass number of required pages to RelationGetBufferForTuple()

A future commit will use this information to determine how aggressively to
extend the relation by. In heap_multi_insert() we know accurately how many
pages we need once we need to extend the relation, providing an accurate lower
bound for how much to extend.

Reviewed-by: Melanie Plageman <[email protected]>
Discussion: https://postgr.es/m/20221029025420[email protected]
src/backend/access/heap/heapam.c
src/backend/access/heap/hio.c
src/include/access/hio.h