{"Entry":{"collection":"guc","key":"io_max_workers","name":"io_max_workers","aliases":[],"metadata":{"baseline":false,"boot_human":"Not specified","boot_val":null,"category":"Resource Usage / I/O","category_zh":"","changed_in":[],"changes":[{"documentation_changed":false,"fields":{},"from":"18","status":"added","to":"19"}],"content_hash":"ccc3bde495512ecd8d83a81cdbbaf962ba206a1a6a36cfa79f780a40a9e98275","context":"","default_changed_in":[],"default_history":[{"from":"19","to":"19","value":"8"}],"derived_content_hash":"043bf7984a6b661b6d2abab0868265f4c94cb5d256e1b22b16daaa010b2f655e","editorial":{"advice":{"olap":"Use representative scans, prefetch, and spill phases. Increase concurrency or worker capacity only while throughput rises without unacceptable CPU overhead, memory pressure, or storage saturation.","oltp":"Benchmark with the production storage stack and concurrency. Optimize tail latency and queue depth, not only average throughput, and retain capacity for WAL, checkpoints, and foreground reads.","small":"Prefer auto or the upstream worker limits. Validate with pg_test_timing or I/O statistics as applicable; a larger pool on a small node can add context switching without useful parallelism."},"mechanism":["PostgreSQL describes io_max_workers as follows: “Maximum number of I/O worker processes, for io_method=worker.” A configuration reload applies the value to the server without a full restart. The atlas measures it in PG19 Beta 3; boot_val is the compiled or initialized baseline, not proof of a running cluster's effective setting.","These controls govern the elastic background-worker pool used only when io_method is worker. io_min_workers keeps warm capacity, io_max_workers caps the pool, io_worker_launch_interval damps short bursts, and io_worker_idle_timeout lets unused workers retire; they do not raise a backend's separate io_max_concurrency ceiling.","Read it together with io_min_workers, io_worker_idle_timeout, io_worker_launch_interval, io_method. Check SHOW and pg_settings on the target server, verify the source and pending_restart fields, and compare workload, logs, and resource metrics before and after any change."],"pitfalls":["Treating the measured boot_val for io_max_workers as proof of the effective value on an initialized or managed cluster.","Applying a change as though it were immediate while pg_settings reports sighup context.","Changing this setting in isolation without checking the linked limits, observability, and rollback path.","Depending on beta behavior in production without retesting the PostgreSQL 19 final release."],"references":[{"title":"PostgreSQL 19 Beta 4: io_max_workers","url":"https://www.postgresql.org/docs/19/runtime-config-resource.html#GUC-IO-MAX-WORKERS"},{"title":"PostgreSQL 19 release notes","url":"https://www.postgresql.org/docs/19/release-19.html"}],"related":["io_min_workers","io_worker_idle_timeout","io_worker_launch_interval","io_method","io_max_concurrency","io_combine_limit"],"summary":"io_max_workers — Maximum number of I/O worker processes, for io_method=worker. Observed in PG19 Beta 4; its last measured boot default is 8 in PG19 Beta 4, with sighup context. This is a beta-snapshot fact and can change before PostgreSQL 19 GA."},"enumvals":[],"first_version":"19","group":"Resource Usage","group_slug":"resource","imported_at":"2026-09-27T17:57:31.407384+08:00","intro_commit":{"authored_at":"2026-04-08T19:06:14+12:00","discussion":["https://postgr.es/m/CA%2BhUKG%2Bm4xV0LMoH2c%3DoRAdEXuCnh%2BtGBTWa7uFeFMGgTLAw%2BQ%40mail.gmail.com"],"hash":"d1c01b79d4ae90e52bf9db9c05c9de17b7313e85","subject":"aio: Adjust I/O worker pool automatically.","url":"https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=d1c01b79d4ae90e52bf9db9c05c9de17b7313e85"},"key":"io_max_workers","last_version":"20","max_val":"","min_val":"","name":"io_max_workers","position":184,"present_in":["19","20"],"repair_provenance":{"original_source_revision":"english-manuals:50d4f829ef0a2f8679a82eb5523f0915ccbb2d04888defe819645b2826a6200b","receipt_sha256":"7b4ca80c94bff1b947b308183a780b38b1155cd2aa72d01b9a488adfee1e8117","repair":"wiki-repair-20261023"},"short_desc":"Sets the maximum number of I/O worker processes.","short_desc_zh":"","source_rev":"wiki-repair-20261023:3597912c0129fc62dbfb566c1bb1c03c7141e738802b068993812f721fda4c55","unit":"","vartype":"integer"}},"Definition":{"Collection":"guc","Key":"io_max_workers","SourceDatabase":"center","Version":"19","SourceTable":"guc","SourceKey":"io_max_workers","SourceRevision":"wiki-repair-20261023:3597912c0129fc62dbfb566c1bb1c03c7141e738802b068993812f721fda4c55","Facts":{"boot_val":"8","category":"Resource Usage / I/O","context":"sighup","description":"Sets the maximum number of I/O worker processes. The default is 8. This parameter can only be set in the postgresql.conf file or on the server command line. Only has an effect if io_method is set to worker.","description_zh":"设置 I/O 工作进程的最大数量。默认值为 8。此参数只能在 postgresql.conf 文件中或服务器命令行中设置。 仅当 io_method 设置为 worker 时才有效。","description_zh_html":"\u003cp\u003e\n         设置 I/O 工作进程的最大数量。默认值为 8。此参数只能在\n         \u003ccode class=\"filename\"\u003epostgresql.conf\u003c/code\u003e 文件中或服务器命令行中设置。\n        \u003c/p\u003e\u003cp\u003e\n         仅当 \u003ca class=\"xref\" href=\"/zh/docs/19/runtime-config-resource.html#GUC-IO-METHOD\"\u003eio_method\u003c/a\u003e 设置为 \u003ccode class=\"literal\"\u003eworker\u003c/code\u003e 时才有效。\n        \u003c/p\u003e","doc":{"anchor":"GUC-IO-MAX-WORKERS","file":"runtime-config-resource.html","lang":"en","sha256":"7f436f2f2b7f9e0fd26a68c14d7d0474da836f643da75a23d291dcd4949bcf4a","slug":"19"},"documented":true,"enumvals":null,"extra_desc":null,"lang":"en","max_val":"32","metadata_version":"19beta4","min_val":"1","name":"io_max_workers","short_desc":"Maximum number of I/O worker processes, for io_method=worker.","source":"pg-settings-source-snapshot","translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/19/html/runtime-config-resource.html","sha256":"ada5ca01d81cc550a4e2533761f17745abfcc8a49b7c5bd07020687511bd0e7e"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"19"},"unit":null,"vartype":"integer","zh_from":"same-version-pgdoc"},"ManualEvidence":{"doc":{"anchor":"GUC-IO-MAX-WORKERS","file":"runtime-config-resource.html","lang":"en","sha256":"7f436f2f2b7f9e0fd26a68c14d7d0474da836f643da75a23d291dcd4949bcf4a","slug":"19"}},"MeasuredEvidence":{"metadata_version":"19beta4"}},"Text":{"Collection":"guc","Key":"io_max_workers","SourceDatabase":"center","Version":"19","Locale":"en","Title":"io_max_workers","Summary":"Sets the maximum number of I/O worker processes. The default is 8. This parameter can only be set in the postgresql.conf file or on the server command line. Only has an effect if io_method is set to worker.","BodyHTML":"\u003cp\u003eSets the maximum number of I/O worker processes. The default is 8. This parameter can only be set in the postgresql.conf file or on the server command line. Only has an effect if io_method is set to worker.\u003c/p\u003e","SourceRevision":"wiki-repair-20261023:3597912c0129fc62dbfb566c1bb1c03c7141e738802b068993812f721fda4c55","ContentHash":"e81cb2bc46cd53d1a257a4e2eb30bc506d4f4546660056079f273933c0438b85","Payload":{"description":"Sets the maximum number of I/O worker processes. The default is 8. This parameter can only be set in the postgresql.conf file or on the server command line. Only has an effect if io_method is set to worker."}},"RequestedLocale":"en","Fallback":false,"Versions":["19","20"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
