Alper Sarı

PostgreSQL 18 Async I/O: AIO Is a Workload Opportunity, Not a 3× Promise

PostgreSQL 18 introduced an asynchronous I/O subsystem. Instead of waiting for each storage request to finish in sequence, the server can issue multiple I/O operations concurrently. The release announcement reports gains of up to 3× in certain scenarios; that phrase describes an upper-bound result, not a general expectation for every database.

The documented AIO paths include sequential scans, bitmap heap scans, and vacuum. That makes the feature interesting for read-heavy scans and maintenance on storage-bound systems. It may have little effect when a workload is CPU-bound, fits in cache, is limited by locks, or spends most of its time waiting on application round trips.

Benchmark the version change with a workload that resembles production. Record PostgreSQL version, storage type, cache state, dataset size, query plans, concurrency, and AIO settings. Include vacuum behavior and mixed traffic, not just a single sequential scan. Compare throughput and tail latency, and keep enough repeated runs to distinguish real changes from cache and background-process noise.

PostgreSQL 18 provides an io_method setting with methods including worker, io_uring, and sync. The compatible choices depend on platform and build configuration. Start with the documented default for your environment, then change one setting at a time. Do not increase every related queue or concurrency setting based on a benchmark headline.

Finally, plan the upgrade itself. PostgreSQL 18 has additional operational changes, including page checksums enabled by default for newly initialized clusters. Read the full upgrade notes and test the production upgrade path before attributing every performance difference to AIO.

The PostgreSQL 18 announcement describes the supported AIO operations and benchmark caveat; the 18 release notes cover settings and migration changes.