Asynchronous IO for PostgreSQL
summary
Prototype adds asynchronous IO to PostgreSQL using io_uring and shows large throughput and CPU wins on sequential scans: buffered reads drop CPU copy time and approach the device limit (roughly 3.2 GB/s on the test), while checkpoints and bgwriter gain big improvements. Design forces cross-process completion handling so another backend can finish IO to avoid deadlocks. Implementation supports both buffered and direct IO, stages submissions to reduce syscalls, and still needs work on WAL integration, multiple io_uring instances and fairness under many parallel workers.
AI-written summary · about
