aio: Add errcontext for processing I/Os for another backend

Melanie Plageman <melanieplageman@gmail.com>

Commit: b3219c69fc1e161df8d380c464b3f2cce3b6cab9
Author: Melanie Plageman <melanieplageman@gmail.com>
Date: 2025-04-01T23:53:07Z
Releases: 18.0
aio: Add errcontext for processing I/Os for another backend

Push an ErrorContextCallback adding additional detail about the process
performing the I/O and the owner of the I/O when those are not the same.

For io_method worker, this adds context specifying which process owns
the I/O that the I/O worker is processing.

For io_method io_uring, this adds context only when a backend is
*completing* I/O for another backend. It specifies the pid of the owning
process.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/rdml3fpukrqnas7qc5uimtl2fyytrnu6ymc2vjf2zuflbsjuul%40hyizyjsexwmm

Files

Discussion

  • AIO v2.0 213 messages · 2024-09-01 → 2025-07-29