Use ExtendBufferedRelTo() in {vm,fsm}_extend()
Andres Freund <andres@anarazel.de>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/visibilitymap.c | modified | +25 −55 |
| src/backend/storage/freespace/freespace.c | modified | +23 −60 |
Discussion
- refactoring relation extension and BufferAlloc(), faster COPY 57 messages · 2022-10-29 → 2023-05-03
Cited messages not in the archive:
2194723.1680736788@sss.pgh.pa.us