pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: heapam: Pass number of required pages to RelationGetBufferForTup
Date: Thu, 06 Apr 2023 23:20:20 +0000
Message-ID: <E1pkYtu-001kzI-TS@gemulon.postgresql.org> (raw)

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@gmail.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(-)



Message-ID: <E1pkYtu-001kzI-TS@gemulon.postgresql.org>
Permalink:  ../E1pkYtu-001kzI-TS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pkYtu-001kzI-TS@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: heapam: Pass number of required pages to RelationGetBufferForTup
  In-Reply-To: <E1pkYtu-001kzI-TS@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox