// postgresql · disk i/o

effective_io_concurrency

How many concurrent read requests a session may issue ahead of time.

默认
16
Range
0 to 1000
Restart needed
否
Default checked on
PostgreSQL 18

作用

Used for prefetching in bitmap heap scans and, from PostgreSQL 18, by the asynchronous read stream used in sequential scans and vacuum.

默认值

16. 16 since PostgreSQL 18 (it was 1 before). Only effective on platforms with prefetch or asynchronous I/O support.

Check the current value

SHOW effective_io_concurrency;

SELECT setting, unit, boot_val, context, source, pending_restart
FROM pg_settings
WHERE name = 'effective_io_concurrency';

Change it

SET effective_io_concurrency = 200;   -- this session
ALTER ROLE reporting SET effective_io_concurrency = 200;   -- new sessions of one role

ALTER SYSTEM SET effective_io_concurrency = 200;
SELECT pg_reload_conf();

No restart. Any role can SET it for a session or with SET LOCAL for one transaction; a server-wide ALTER SYSTEM change applies after a reload (context is user).

When to change it

Raise to the low hundreds on SSD or NVMe storage; cloud block storage often also benefits.

What can go wrong

Too high on spinning disks causes seek storms; 0 disables prefetching.

Questions about effective_io_concurrency

What is the default value of effective_io_concurrency in PostgreSQL?

16. 16 since PostgreSQL 18 (it was 1 before). Only effective on platforms with prefetch or asynchronous I/O support.

Does changing effective_io_concurrency require a restart?

No. No restart. Any role can SET it for a session or with SET LOCAL for one transaction; a server-wide ALTER SYSTEM change applies after a reload (context is user).

When should I change effective_io_concurrency?

Raise to the low hundreds on SSD or NVMe storage; cloud block storage often also benefits.

Back to all PostgreSQL settings, or check the PostgreSQL manual for every option.

// one client for every engine

Check effective_io_concurrency on your own server

SQLly runs the query above against PostgreSQL and the other engines in this reference, from one desktop app on macOS, Windows and Linux.