localbuf: Introduce FlushLocalBuffer()

Andres Freund <andres@anarazel.de>

Commit: 4b4d33b9ea9ff6bdc813b5b7b1aa4a6a3a2a2d5c
Author: Andres Freund <andres@anarazel.de>
Date: 2025-03-16T02:07:48Z
Releases: 18.0
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

Discussion

  • AIO v2.0 213 messages · 2024-09-01 → 2025-07-29