Refactor PinBufferForBlock() to remove checks about persistence.
Noah Misch <noah@leadboat.com>
Refactor PinBufferForBlock() to remove checks about persistence. There are checks in PinBufferForBlock() function to set persistence of the relation. This function is called for each block in the relation. Instead, set persistence of the relation before PinBufferForBlock(). Nazir Bilal Yavuz Discussion: https://postgr.es/m/CAN55FZ0JKL6vk1xQp6rfOXiNFV1u1H0tJDPPGHWoiO3ea2Wc=A@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/aio/read_stream.c | modified | +1 −1 |
| src/backend/storage/buffer/bufmgr.c | modified | +15 −12 |
| src/include/storage/bufmgr.h | modified | +1 −1 |
Discussion
- Use read streams in CREATE DATABASE command when the strategy is wal_log 12 messages · 2024-04-16 → 2024-07-23