From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: heapam: Pass number of required pages to RelationGetBufferForTup |
Date: | 2023-04-06 23:20:20 |
Message-ID: | E1pkYtu-001kzI-TS@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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 <melanieplageman(at)gmail(dot)com>
Discussion: https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5279e9db8e8da3c310c0068da2de98df5a714b2e
Modified Files
--------------
src/backend/access/heap/heapam.c | 58 +++++++++++++++++++++++++++++++++++++---
src/backend/access/heap/hio.c | 8 +++++-
src/include/access/hio.h | 3 ++-
3 files changed, 63 insertions(+), 6 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2023-04-06 23:41:14 | pgsql: Add VACUUM/ANALYZE BUFFER_USAGE_LIMIT option |
Previous Message | Daniel Gustafsson | 2023-04-06 23:03:23 | pgsql: Separate vacuum cost variables from GUCs |