pgsql: localbuf: Introduce FlushLocalBuffer() - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: localbuf: Introduce FlushLocalBuffer()
Date
Msg-id E1ttda0-002gW5-13@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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 <melanieplageman@gmail.com>
Discussion: https://postgr.es/m/CAAKRu_b9anbWzEs5AAF9WCvcEVmgz-1AkHSQ-CLLy-p7WHzvFw@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(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Silence perl critic
Next
From: Michael Paquier
Date:
Subject: pgsql: pg_createsubscriber: Remove some code bloat in the atexit() call