diff options
author | Andres Freund | 2023-04-06 21:18:24 +0000 |
---|---|---|
committer | Andres Freund | 2023-04-06 23:17:16 +0000 |
commit | 5279e9db8e8da3c310c0068da2de98df5a714b2e (patch) | |
tree | e38b8127380623775b00564c38f65029543f5956 /src/include/access/hio.h | |
parent | 7d71d3dd080b9b147402db3365fe498f74704231 (diff) |
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/[email protected]
Diffstat (limited to 'src/include/access/hio.h')
-rw-r--r-- | src/include/access/hio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/hio.h b/src/include/access/hio.h index 3f20b585326..b665de7d41e 100644 --- a/src/include/access/hio.h +++ b/src/include/access/hio.h @@ -38,6 +38,7 @@ extern void RelationPutHeapTuple(Relation relation, Buffer buffer, extern Buffer RelationGetBufferForTuple(Relation relation, Size len, Buffer otherBuffer, int options, BulkInsertStateData *bistate, - Buffer *vmbuffer, Buffer *vmbuffer_other); + Buffer *vmbuffer, Buffer *vmbuffer_other, + int num_pages); #endif /* HIO_H */ |