Get the latest tech news

Tuning async IO in PostgreSQL 18


One of the significant improvements in PG18 is AIO. What are some basic tuning recommendations?

I want to share a couple suggestions on how to tune the AIO in Postgres 18, and explain some inherent (but not immediately obvious) trade-offs and limitations. Note: The benchmark (along with scripts, a lot of results and a much more detailed explanation) was originally shared in the pgsql-hackers thread about the io_method default. I saw suggestions to “use io_uring for maximum efficiency”, but the earlier benchmark clearly shows io_uring being significantly slower than worker for sequential scans.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of PostgreSQL

PostgreSQL

Photo of async

async

Related news:

News photo

What’s New in PostgreSQL 18 – a Developer’s Perspective

News photo

PostgreSQL 18.0 Released With Async I/O, Performance Improvements

News photo

Replace PostgreSQL with Git for your next project