public inbox for [email protected]  
help / color / mirror / Atom feed
From: Melanie Plageman <[email protected]>
To: [email protected]
Subject: pgsql: aio: Add errcontext for processing I/Os for another backend
Date: Tue, 01 Apr 2025 23:54:08 +0000
Message-ID: <[email protected]> (raw)

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 <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
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(+)



reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: aio: Add errcontext for processing I/Os for another backend
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox