localbuf: Introduce FlushLocalBuffer() Previously we had two paths implementing writing out temporary table buffers. For shared buffers, the logic for that is centralized in FlushBuffer(). Introduce FlushLocalBuffer() to do the same for local buffers.
Besides being a nice cleanup on its own, it also makes an upcoming change slightly easier. Reviewed-by: Melanie Plageman <melanieplage...@gmail.com> Discussion: https://postgr.es/m/caakru_b9anbwzes5aaf9wcvcevmgz-1akhsq-clly-p7whz...@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/4b4d33b9ea9ff6bdc813b5b7b1aa4a6a3a2a2d5c Modified Files -------------- src/backend/storage/buffer/bufmgr.c | 22 +----------- src/backend/storage/buffer/localbuf.c | 64 ++++++++++++++++++++--------------- src/include/storage/buf_internals.h | 1 + 3 files changed, 38 insertions(+), 49 deletions(-)