| From: | Melanie Plageman <melanieplageman(at)gmail(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: aio: Add errcontext for processing I/Os for another backend |
| Date: | 2025-04-01 23:54:08 |
| Message-ID: | E1tzlQm-002BoM-39@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/rdml3fpukrqnas7qc5uimtl2fyytrnu6ymc2vjf2zuflbsjuul%40hyizyjsexwmm
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b3219c69fc1e161df8d380c464b3f2cce3b6cab9
Modified Files
--------------
src/backend/storage/aio/method_io_uring.c | 31 +++++++++++++++++++++++++++++++
src/backend/storage/aio/method_worker.c | 29 +++++++++++++++++++++++++++++
2 files changed, 60 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2025-04-02 01:03:38 | pgsql: Doc: add information about partition locking |
| Previous Message | Michael Paquier | 2025-04-01 23:25:24 | Re: pgsql: pg_upgrade: Fix inconsistency in memory freeing |