How to Verify PostgreSQL 18 Asynchronous I/O: A 2026 Self-Hosted Database Test Guide

How to Verify PostgreSQL 18 Asynchronous I/O: A 2026 Self-Hosted Database Test Guide

Do not assume asynchronous I/O will make PostgreSQL faster: compare sync, worker, and io_uring when the system supports it, using the same data, query, concurrency, and cache conditions. Test it first on sequential scans, bitmap heap scans, and maintenance work; an NVMe label or a single benchmark run is not enough to justify a production change.

This guide is for DBAs planning a move to a self-hosted PostgreSQL server, engineers responsible for reporting or batch workloads, and technical leads comparing managed databases with dedicated hardware. It gives each group a repeatable test plan and a basis for a cautious rollout.

Last updated October 19, 2026. PostgreSQL release and configuration details checked against the official version policy, PostgreSQL 18.6 release notes, and PostgreSQL 18 documentation.

PostgreSQL 18 asynchronous I/O: test the workload, not the headline

PostgreSQL 18 introduced asynchronous I/O support. The feature is intended to help with specific operations, including sequential scans, bitmap heap scans, and vacuum-related work; that does not mean every query, database, or NVMe server will improve. Read the PostgreSQL 18 release notes for the release context, then treat your own test results as the evidence for your deployment decision.

A useful test answers a narrower question: does a particular workload complete more efficiently under one I/O method, without creating a regression elsewhere? That requires more than timing one query. Query plans, cache state, concurrent activity, CPU use, and operating system I/O all affect the result.

The current PostgreSQL 18 minor release noted in the official version materials is 18.6. Record the exact PostgreSQL minor version, operating system, kernel, build options, and storage setup used in each test. Those details make later comparisons reproducible and help identify whether a result came from a software or environment change.

Which PostgreSQL 18 io_method settings should you compare? Compare sync with worker, then include io_uring only when the PostgreSQL build and runtime environment support it. The PostgreSQL 18 resource configuration documentation describes the available methods, the startup-only setting constraint, and the build requirement for io_uring.

Set up a controlled comparison

Do not compare two methods while also changing the SQL, data volume, indexes, server settings, or concurrency. If several conditions change at once, a faster or slower result cannot be attributed confidently to io_method.

Method What to verify Good use in the comparison Limitation to account for
sync Confirm the active setting after starting the server. Establish a baseline with the same database and workload. It is a comparison point, not a promise of poor performance.
worker Check the configured value and PostgreSQL build. Compare the documented worker-based method against the baseline. Worker activity and available CPU can affect mixed workloads.
io_uring Confirm build support and that the server starts with this method. Include only when the tested environment supports it. A configured option is not proof of a benefit for your queries.

The setting must be applied when the server starts. Do not assume that changing it in a session or reloading configuration has changed the active method. Check the server configuration documentation for the exact behavior and build requirements before scheduling tests.

For each method, save the configuration and verify what PostgreSQL actually loaded:

SHOW io_method;

SELECT name, setting, context, source
FROM pg_settings
WHERE name = 'io_method';

Because this is a server-start setting, plan for a restart when changing methods. Use an isolated test instance or a maintenance window, not an unplanned restart of a busy production database. Capture the effective setting after startup; if the selected method is unsupported in that build, resolve that before comparing query results.

Sequential scans and reporting reads

Sequential scans are a sensible place to start when reporting queries read substantial portions of a table. Pick a query that represents an actual report or batch read. Record its SQL, parameters, execution plan, relation size, indexes, and the expected concurrency. Do not use a tiny demonstration table if production reads large relations.

Capture the plan with:

EXPLAIN (ANALYZE, BUFFERS, SETTINGS)
SELECT ...
FROM ...
WHERE ...;

The PostgreSQL EXPLAIN documentation explains the plan and execution details returned by this command. ANALYZE runs the query, so use a safe test dataset and account for the time and load it may create.

Run distinct warm-cache and cold-cache comparisons. A warm-cache run measures a different situation from a read that has to fetch data from storage. Restarting PostgreSQL clears its shared buffers, but it does not necessarily clear the operating system page cache. Do not label a test “cold” just because the database was restarted.

Use an isolated host or a controlled maintenance procedure for cold-cache testing. Never clear system caches on a production server just to produce a benchmark. Keep the sequence of methods consistent, run each case more than once, and record the results instead of selecting only the best run.

Does PostgreSQL 18 asynchronous I/O help an NVMe database? It might help a workload that performs relevant I/O operations, but the device type alone cannot answer that. Test both cache states and check whether the query is storage-limited; an NVMe device can be underused, or the query can be limited by CPU, memory, locks, or plan choices instead.

Bitmap scans and mixed workloads

A bitmap heap scan may have a different I/O pattern from a sequential scan. First confirm that the target query actually uses a bitmap heap scan. If the plan changes between methods or test runs, the comparison is no longer simply a test of the I/O method.

Run the same query with the same data distribution, statistics, indexes, parameters, and concurrency. Save the full execution plan each time. Inspect how many blocks are read or hit, and note whether execution time changes alongside CPU use or other system activity.

For mixed workloads, keep a separate record of concurrent reads and writes. An apparent improvement in one report may coincide with a slowdown in another workload or increased CPU contention. Do not attribute a whole-server change to asynchronous I/O if the test also changed the number of clients, background jobs, or maintenance activity.

How should you compare sync, worker, and io_uring? Use the same workload and environment for all supported methods, restarting between settings as required. Treat io_uring as an optional test case: include it only after confirming build support and successful startup, then compare it against the same baseline rather than against a different query or cache state.

Vacuum and maintenance work

Maintenance tests answer a different question from query benchmarks. Choose a repeatable operation on a test copy or a safely isolated table. Record the table condition, operation, relevant maintenance settings, concurrent activity, start and end times, and system load. The PostgreSQL VACUUM reference documents the command and its options.

Avoid comparing a lightly modified table in one run with a heavily updated table in another. The amount of work can differ substantially. Concurrent queries and writes can also change the elapsed time and I/O pattern. Keep these tests separate from report-query measurements: a change in vacuum duration does not by itself demonstrate that a reporting workload will benefit.

Maintenance timing is meaningful only when the work is comparable. If table state, competing activity, or maintenance settings differ, record those differences and do not treat the runs as a controlled comparison.

Read database and operating system metrics together

A query duration is an outcome, not an explanation. Use plan data, database statistics, and operating system observations to understand what changed.

Evidence source What to capture How it helps explain a result
EXPLAIN (ANALYZE, BUFFERS, SETTINGS) Plan shape, actual time, rows, buffer hits and reads, relevant settings. Shows whether the plan or buffer behavior changed with the measured time.
pg_stat_io Read/write counts and timing, context, object, backend type, and statistics reset point. Provides database-level I/O activity to compare over a controlled interval.
I/O timing Database-reported time spent in I/O, when enabled and supported by the configuration. Helps distinguish I/O waiting from a change driven by CPU or plan behavior.
Operating system tools Device utilization, queueing, latency, CPU load, and memory pressure. Adds host-level context that database counters alone cannot provide.

The PostgreSQL monitoring statistics documentation describes pg_stat_io and its statistics. Its counters are not a per-query report. Take snapshots around a controlled test interval, account for the statistics reset point, and avoid attributing unrelated background activity to the query under test.

A basic inspection query is:

SELECT backend_type, object, context,
       reads, read_time, writes, write_time,
       hits, evictions, reuses, stats_reset
FROM pg_stat_io
ORDER BY backend_type, object, context;

Column availability and interpretation should be checked against the PostgreSQL 18 monitoring documentation. For query-specific context, use EXPLAIN; for device activity, use appropriate operating system monitoring. A database buffer read does not automatically mean a physical device read, because operating system caching can satisfy it.

If I/O timing is disabled, check the relevant PostgreSQL statistics configuration settings before enabling it for a controlled test. Record whether it was enabled, and keep the setting consistent across methods. Changes in instrumentation can affect the comparison, so do not enable it for only one run and compare that result as if nothing else changed.

Decide whether the result is strong enough to act on

Repeat each scenario under the same conditions and retain all runs, including outliers. An outlier can point to noisy neighbors in the test environment, unrelated background work, a cache mismatch, or a genuinely unstable result. Investigate it instead of silently discarding it.

A setting is a candidate for rollout when the observed effect is repeatable in the workload that matters, the plans and test conditions are comparable, and there is no unacceptable regression in other relevant activity. Do not set a universal percentage threshold without considering measurement noise and the value of the workload. If the timing difference is small or inconsistent, the evidence does not support a production change.

Before rollout, keep a record of the prior configuration and a tested restart-and-rollback procedure. Apply the change to a limited environment first, monitor the same metrics, and expand only if the production-like test remains stable. Keep backups outside the database server and verify that restoration works; a configuration rollback does not protect data.

Match the test environment to the database decision

Testing on the intended server class matters because shared CPU resources, memory limits, storage behavior, and background activity can distort results. A dedicated AMD physical server can provide an environment without another tenant sharing that machine’s CPU allocation, but that does not guarantee faster queries or remove the need to test. It also does not replace database replication, software RAID where appropriate, or off-machine backups.

For a reproducible server test, record the actual CPU, memory, NVMe model, operating system, PostgreSQL build, kernel, and storage layout from the selected configuration. Check the current HubAMD server specifications before choosing a test machine; do not infer database performance from a hardware specification. If the benchmark will guide a purchase, compare the actual available configuration and billing terms on the HubAMD server pricing page.

Managed database services can reduce the amount of infrastructure administration, while a self-hosted server gives the team more direct control over the operating system, database settings, and storage layout. That control also brings responsibility for upgrades, monitoring, backups, recovery tests, and replication. For a light or short-lived workload, a managed service or a small shared instance may be more practical than maintaining a dedicated server.

If a shared cloud instance shows inconsistent CPU availability, limited control over storage, or cost that grows with provisioned resources, a dedicated server may be worth evaluating for sustained database work. HubAMD’s AMD bare metal service is an option to assess when the test requires exclusive server resources and a stable environment for long-running workloads. First verify the available configuration against the workload and run the same controlled tests described here; choose it only if the evidence and operational responsibilities fit the team.

HubAMD AMD EPYC 7543P dedicated server

From $448/month

Configure a dedicated server HubAMD 128GB / 256GB pricing
Back to the operations blog