Oct 15, 2025 / 03:36 PM UTC

    Benchmarking Postgres 17 vs 18: What the New I/O System Really Delivers

    Postgres 18 quietly changes something fundamental about how the database talks to storage. For the first time, you can choose how Postgres performs disk I/O. It sounds technical, but it affects one of the most important parts of database performance: how quickly data moves between memory and disk.

    PlanetScale’s team decided to find out what that really means in practice. They ran a series of benchmarks comparing Postgres 17 with the new Postgres 18, testing all of the new I/O options under a variety of conditions. The results show that Postgres 18 is faster and more flexible, but also that the gains depend heavily on your storage and workload.

    What Changed in Postgres 18

    In earlier versions, every I/O operation in Postgres was synchronous. The database asked the operating system for data and waited until it was ready. That made behavior predictable but sometimes limited throughput.

    Postgres 18 introduces a new parameter called io_method. It determines how Postgres issues and manages disk operations. There are now three modes:

    • sync – the traditional approach used in Postgres 17 and earlier.
    • worker – a new default that offloads disk work to background processes.
    • io_uring – an experimental option that uses Linux’s asynchronous io_uring interface to submit multiple I/O requests without blocking.

    On paper, this should allow Postgres to keep disks busy while freeing up CPU time for query processing. The benchmark aimed to see how much that helps in practice.

    How PlanetScale Tested It

    The team used sysbench, a standard tool for database stress testing. They focused on the oltp_read_only workload, which measures how well Postgres handles reads. That choice matters because io_uring only affects read paths at the moment.

    The database contained around 300 GB of data spread across 100 tables, each with 13 million rows. With only 64 GB of RAM available, the dataset couldn’t fit entirely in memory, forcing the system to hit disk often-exactly the scenario where better I/O should help.

    They ran each configuration for five minutes, with a ten-minute warm-up period. Tests varied in three main ways:

    • Connection count: 1, 10, and 50 clients
    • Range size: 100 (small point lookups) and 10,000 (larger scans)
    • Storage type: from slow network volumes to fast local NVMe drives

    In total, 96 benchmark runs covered every combination of Postgres version and I/O method.

    Hardware Overview

    The tests ran on AWS EC2 instances with identical CPUs and memory but different disk setups:

    • r7i.2xlarge (gp3, 3,000 IOPS) – baseline network-attached storage
    • r7i.2xlarge (gp3, 10,000 IOPS) – faster network volume
    • r7i.2xlarge (io2, 16,000 IOPS) – premium EBS storage
    • i7i.2xlarge with local NVMe – local, low-latency SSD

    This spread let them see how the new I/O methods behave when the disk is the bottleneck versus when it’s not.

    Results

    Low Concurrency

    With a single connection, Postgres 18 was generally faster than 17. The new worker mode performed especially well, while io_uring often lagged behind on network-attached disks.

    On local NVMe storage, the differences narrowed. For small queries (range size 100), worker and sync still led. For larger range scans, all three modes were closer, and disk latency mattered more than the I/O method.

    Moderate Load

    At ten concurrent connections, patterns began to shift. On slower disks, io_uring struggled. On faster hardware, it caught up, though worker remained the most consistent performer across all environments.

    Heavy Concurrency

    At fifty connections, Postgres 18 pulled ahead of 17 across the board. On network-attached storage, performance was similar between I/O modes because the disks themselves were the limiting factor. On local NVMe drives, io_uring finally showed its potential, edging out worker in throughput for large range scans.

    The lesson: io_uring can help in very fast, high-concurrency environments, but it doesn’t automatically win in every scenario.

    Cost Perspective

    The hardware story isn’t complete without cost. Here are the approximate monthly AWS prices used in the benchmark:

    • r7i + gp3 (3k IOPS): $442
    • r7i + gp3 (10k IOPS): $492
    • r7i + io2 (16k IOPS): $1,514
    • i7i + local NVMe: $551

    Even though the NVMe instance isn’t the cheapest per hour, it provides far better throughput and comes with nearly 1.8 TB of local SSD space. In performance per dollar, it wins by a wide margin.

    Why io_uring Isn’t Always Faster

    It’s tempting to expect io_uring to dominate, but several factors limit its impact today.

    1. The benchmark focused on reads only. Real workloads often mix reads and writes, and Postgres hasn’t applied asynchronous I/O to writes yet.
    2. Not every type of read in Postgres takes advantage of io_uring. Index scans, for instance, still rely on synchronous paths.
    3. Some CPU-bound tasks, like checksums or memory copying, still block progress even if disk operations don’t.
    4. The worker mode adds parallelism in a simpler, sometimes more efficient way.
    5. On slower, network-attached disks, the latency overhead of the storage system dwarfs any software-level improvement.

    So while io_uring is an exciting step forward, it’s not a universal speed boost. It’s a tool that pays off only in the right environment.

    What This Means for You

    If you upgrade to Postgres 18, you’ll get the worker I/O method by default. It’s a safe and smart choice, delivering smoother parallel performance without the complexity of io_uring.

    If you run on local NVMe disks and handle lots of concurrent reads, it’s worth experimenting with io_uring. You might see small but measurable gains. For most other setups, worker will likely perform just as well or better.

    The broader message from these benchmarks is simple: hardware still matters more than I/O method. Fast, local storage beats higher-end network volumes in both speed and cost efficiency.

    Final Thoughts

    Postgres 18 is not a revolutionary release, but it makes meaningful progress. It gives database administrators more control over how the system interacts with storage and shows that the project is serious about modernizing its performance model.

    The new io_method options are a foundation for future improvements. worker already delivers benefits today, and io_uring hints at what’s possible as more of Postgres adopts asynchronous I/O internally.

    For now, the best advice is practical: upgrade to 18, keep the default settings, and let your workload decide if it’s worth pushing further.

    The big picture is encouraging. Postgres 18 feels faster, more flexible, and better prepared for the next decade of workloads.

    Login

    to interact with this post.

    Social.
    Snapshot.

    Instantly create a share-worthy social post for this post.

    Social Snapshot
    Explore similar content
    Steering the Matrix: Using Attention Weights to Eliminate Hallucinations (A Perspective)
    Gautam Kumar ·

    Oct 3, 2026

    Steering the Matrix: Using Attention Weights to Eliminate Hallucinations (A Perspective)

    I was in a long conversation with my friend Atul recently, fully aware he’d most likely forget most of it by tomorrow. Yet, mid-conversation, he pinpointed a memory from months ago: he fumbled in a React question in an interview, posted about it on LinkedIn, and received a perfectly reasoned comment from a stranger correcting his understanding. After researching the stranger's reply, Atul realized his own understanding was wrong and learned something new. The irony struck me immediately, his brain was ruthlessly deleting our present interaction while perfectly preserving a hyper-specific artifact from his past.

    Software Design Principles:
    Mouli ·

    Jul 26, 2026

    Software Design Principles:

    Have you ever copied a block of code, pasted it somewhere else, and changed just one or two lines? We’ve all done it. It feels like the quickest solution — until you need to update that logic later and realize it’s duplicated in five different places.

    Exploring Video Streaming Protocols: Types, Uses, and Platforms
    Dmystified Tech ·

    Jan 18, 2026

    Exploring Video Streaming Protocols: Types, Uses, and Platforms

    Video streaming has become a huge part of our daily lives. We watch movies on Netflix, catch live sports on YouTube, or join video calls on Zoom. Behind all this smooth playback is a set of technologies called streaming protocols. These protocols are like the rules that govern how video data travels from a server to your device. They handle everything from breaking the video into chunks to adjusting quality based on your internet speed. Without them, streaming would be choppy, unreliable, or impossible on different devices.