Use ExtendBufferedRelTo() in {vm,fsm}_extend()
authorAndres Freund <andres@anarazel.de>
Thu, 6 Apr 2023 00:29:57 +0000 (17:29 -0700)
committerAndres Freund <andres@anarazel.de>
Thu, 6 Apr 2023 00:50:09 +0000 (17:50 -0700)
commitfcdda1e4b50249c344e510ea93d4bd74d2743430
treea01cac1609c93e920b31cdd552c40a051e84e865
parentbccd6908ca82c6cba0c76b669bc81fc9f3fb60cd
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
src/backend/access/heap/visibilitymap.c
src/backend/storage/freespace/freespace.c