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/[email protected]
Discussion: https://postgr.es/m/[email protected]

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

Reply via email to