pgsql: aio: Add errcontext for processing I/Os for another backend - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: aio: Add errcontext for processing I/Os for another backend
Date
Msg-id E1tzlQm-002BoM-39@gemulon.postgresql.org
Whole thread Raw
List 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@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.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(+)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pgsql: pg_upgrade: Fix inconsistency in memory freeing
Next
From: David Rowley
Date:
Subject: pgsql: Doc: add information about partition locking