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

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use ExtendBufferedRelTo() in {vm,fsm}_extend()
Date: 2023-04-06 00:51:23
Message-ID: E1pkDqU-001Zqj-JF@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2023-04-06 00:55:41 Re: pgsql: Don't initialize page in {vm,fsm}_extend(), not needed
Previous Message David Rowley 2023-04-06 00:37:28 pgsql: Always make a BufferAccessStrategy for ANALYZE