localbuf: Introduce FlushLocalBuffer()
Andres Freund <andres@anarazel.de>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/buffer/bufmgr.c | modified | +1 −21 |
| src/backend/storage/buffer/localbuf.c | modified | +36 −28 |
| src/include/storage/buf_internals.h | modified | +1 −0 |
Discussion
- AIO v2.0 213 messages · 2024-09-01 → 2025-07-29