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: Use ExtendBufferedRelTo() in {vm,fsm}_extend()
Date: Thu, 06 Apr 2023 00:51:23 +0000
Message-ID: <E1pkDqU-001Zqj-JF@gemulon.postgresql.org> (raw)

Use ExtendBufferedRelTo() in {vm,fsm}_extend()

This uses ExtendBufferedRelTo(), introduced in 31966b151e6, to extend the
visibilitymap and freespacemap to the size needed.

It also happens to fix a warning introduced in 3d6a98457d8, reported by Tom
Lane.

Discussion: https://postgr.es/m/20221029025420.eplyow6k7tgu6he3@awork3.anarazel.de
Discussion: https://postgr.es/m/2194723.1680736788@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fcdda1e4b50249c344e510ea93d4bd74d2743430

Modified Files
--------------
src/backend/access/heap/visibilitymap.c   | 80 ++++++++++-------------------
src/backend/storage/freespace/freespace.c | 83 +++++++++----------------------
2 files changed, 48 insertions(+), 115 deletions(-)



Message-ID: <E1pkDqU-001Zqj-JF@gemulon.postgresql.org>
Permalink:  ../E1pkDqU-001Zqj-JF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pkDqU-001Zqj-JF@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: Use ExtendBufferedRelTo() in {vm,fsm}_extend()
  In-Reply-To: <E1pkDqU-001Zqj-JF@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