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

Andres Freund <andres@anarazel.de>

Commit: fcdda1e4b50249c344e510ea93d4bd74d2743430
Author: Andres Freund <andres@anarazel.de>
Date: 2023-04-06T00:50:09Z
Releases: 16.0
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

Files

Discussion

Cited messages not in the archive: 2194723.1680736788@sss.pgh.pa.us