Asynchronous I/O
AIO subsystem with io_method worker/io_uring, IO workers, and the fixes and extensions around it.
Versions
- PostgreSQL 20 · in-development · improved · minor · 2 commits · +39 / -4 lines
- PostgreSQL 19 · shipped · improved · moderate · 11 commits · +2.8k / -657 lines
- PostgreSQL 18 · shipped · new · major · 54 commits · +11.9k / -724 lines
- PostgreSQL 17 · worked-on · improved · moderate
- PostgreSQL 16 · worked-on · improved · moderate
Threads
- BUG #19953: pg_stat_io exposes impossible rows for io worker backends
- Bump soft open file limit (RLIMIT_NOFILE) to hard limit on startup
- PANIC at shutdown when a reload changes full_page_writes
- Fix background writer processing locking in README
- Typos in smgr.c
- GetRelationPath() vs critical sections
- aio tests failing on newer Linux kernels
- [Bug Report + Patch] File descriptor leak when io_method=io_uring
- Remove obsolete locking comment from AddBufferToRing()
- BUG #19725: PostgreSQL 18.6: pg_restore read failure with io_uring, not observed with worker
- BUG #19792: BUG: Deadlock between WaitIO and read-stream look-ahead under io_method=io_uring (18.6)
- BUG #19796: io_uring crashes with specific kernel/liburing versions + io_max_concurrency due to rings overlap
- [PATCH] Small gaps in IoWorkerMain() error handling
- Incorrect argument passed to buffer_readv_encode_error()
- Low frequency AIO checksum corruption on buildfarm member fruitcrow / GNU Hurd
- Low frequency AIO checksum corruption on buildfarm member fruitcrow / GNU Hurd
- aio: worker: Free SMGR objects when idle
- aio: Async fsyncs for crash recovery and checkpointer
- Double content-lock acquisition silently leaks a lock
- [patch] Cache invalidation for I/O Workers
- BUG #19622: io_method=worker retains file descriptors on dropped relations
- [Bug] Possible io_uring FD leak across crash recovery
- aio: Don't silently drop wait_event_info
- BUG #19369: Not documented that io_uring on kernel versions between 5.1 and below 5.6 does not work
- test_aio: Fix broken error recovery assertions in 001_aio
- pg19b1: TRAP: failed Assert("pgstat_bktype_io_stats_valid(bktype_shstats, MyBackendType)")
- BM_IO_ERROR flag is lost in TerminateBufferIO due to order of operations in UnlockBufHdrExt
- [PATCH] Warn when io_min_workers exceeds io_max_workers
- GetBufferDescriptor() being called for local buffers from MarkBufferDirtyHint()
- 048_vacuum_horizon_floor.pl hangs due to wakeup lost inside LockBufferForCleanup
- BUG #19505: Some weird spikes postgresql processes in database (up to 200k sometime) without apparent reasons.
- Question on io_min_workers > io_max_workers semantics
- Automatically sizing the IO worker pool
- Failing test_aio tests due to too low(illegal?) segsize_blocks
- Refactoring DetermineSleepTime()
- Assertion failure in hash_kill_items()
- Buffer locking is special (hints, checksums, AIO writes)
- pgsql: test_aio: Add basic tests for StartReadBuffers()
- Don't synchronously wait for already-in-progress IO in read stream
- Bug in pg_get_aios()
- Use SMgrRelation instead of SMgrRelationData * in pgaio_io_set_target_smgr()
- Odd usage of errmsg_internal in bufmgr.c
- Fix wrong log in pgstat_report_checksum_failures_in_db()
- BUG #19373: One backend hanging in AioIoUringExecution blocking other backends
- io_uring: Fix danger of completion getting reused before being read
- [PATCH] check kernel version for io_method
- BUG #19366: heap-use-after-free in pgaio_io_reclaim() detected with RELCACHE_FORCE_RELEASE
- [PATCH] test_aio: Skip io_uring tests when kernel disables it
- [PATCH] aio: Refactor to deduplicate shared and local completion callbacks
- BUG #19368: f54af9f does not create the correct macro for autotools build
- Small bugs regarding resowner handling in aio.c, catcache.c
- Fix a minor typo in the comment of read_stream_start_pending
- pgsql: Add pg_atomic_unlocked_write_u64
- freespace buffer locking
- postmaster uses more CPU in 18 beta1 with io_method=io_uring
- IO in wrong state on riscv64
- doc: Improve description of io_combine_limit and io_max_combine_limit GUCs
- Question on pg_stat_io showing zero reads/writes for I/O workers
- AIO writes vs hint bits vs checksums
- Potential "AIO / io workers" inter-worker locking issue in PG18?
- pg18: leaks io-uring FDs during restart_after_crash
- Potential deadlock in pgaio_io_wait()
- AioCtl Shared Memory size fix
- Should io_method=worker remain the default?
- Non-reproducible AIO failure
- aio/README.md comments
- Kernel AIO on FreeBSD, macOS and a couple of other Unixen
- AIO v2.0
- I/O worker and ConfigReload
- vacuumlazy: Modernize count_nondeletable_pages
- IO worker crash in test_aio/002_io_workers
- Remove unused wait_event_info parameter in FileStartReadV()
- Mention the default io_method?
- Replace some %llu remnants in the tree
- Encapsulate io_uring process count calculation
- Add AioUringCompletion in wait_event_names.txt and a safeguard in generate-wait_event_types.pl
- Minor adjustment to pg_aios output naming
- PostgreSQL 18 Beta 1 io_max_concurrency
- minor fix related to Auxiliary processes and IO workers
- Allow io_combine_limit up to 1MB
- Buildfarm: Enabling injection points on basilisk/dogfish (Alpine / musl)
- BAS_BULKREAD vs read stream
- pgsql: aio: Add test_aio module
- pgsql: aio: Infrastructure for io_method=worker
- postgresql.conf.sample ordering for IO, worker related GUCs
- Reorder shutdown sequence, to flush pgstats later
- Exceptional md.c paths for recovery and zero_damaged_pages
- Managing IO workers in postmaster's state machine
- Prefetch the next tuple's memory during seqscans
- Asynchronous and "direct" IO support for PostgreSQL.
- Replace buffer I/O locks with condition variables (reviving an old patch)
- Blocking I/O, async I/O and io_uring
- io_uring support