Direct I/O
Optional O_DIRECT I/O for data and WAL files (io_direct), with aligned buffer allocation support.
Versions
- PostgreSQL 20 · in-development · improved · moderate · 1 commit · +24 / -8 lines
- PostgreSQL 19 · worked-on · improved · moderate
- PostgreSQL 18 · worked-on · improved · moderate
- PostgreSQL 17 · shipped · improved · moderate · 4 commits · +167 / -43 lines
- PostgreSQL 16 · shipped · new · major · 5 commits · +437 / -126 lines
Threads
- Use WALReadFromBuffers in more places
- missing PG_IO_ALIGN_SIZE uses
- Writing out WAL buffers that are still in flux
- Improve conditional compilation for direct I/O alignment checks
- Improve WALRead() to suck data directly from WAL buffers when possible
- Direct I/O
- Add palloc_aligned() to allow arbitrary power of 2 memory alignment
- O_DIRECT on macOS