public inbox for [email protected]  
help / color / mirror / Atom feed
From: Andres Freund <[email protected]>
To: [email protected]
Subject: pgsql: aio: Basic subsystem initialization
Date: Mon, 17 Mar 2025 23:23:42 +0000
Message-ID: <[email protected]> (raw)

aio: Basic subsystem initialization

This commit just does the minimal wiring up of the AIO subsystem, added in the
next commit, to the rest of the system. The next commit contains more details
about motivation and architecture.

This commit is kept separate to make it easier to review, separating the
changes across the tree, from the implementation of the new subsystem.

We discussed squashing this commit with the main commit before merging AIO,
but there has been a mild preference for keeping it separate.

Reviewed-by: Heikki Linnakangas <[email protected]>
Reviewed-by: Noah Misch <[email protected]>
Discussion: https://postgr.es/m/uvrtrknj4kdytuboidbhwclo4gxhswwcpgadptsjvjqcluzmah%40brqs62irg4dt

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/02844012b304ba80d1c48d51f6fe10bb622490cc

Modified Files
--------------
doc/src/sgml/config.sgml                      | 51 +++++++++++++++
src/backend/access/transam/xact.c             | 12 ++++
src/backend/postmaster/autovacuum.c           |  2 +
src/backend/postmaster/bgwriter.c             |  2 +
src/backend/postmaster/checkpointer.c         |  2 +
src/backend/postmaster/pgarch.c               |  2 +
src/backend/postmaster/walsummarizer.c        |  2 +
src/backend/postmaster/walwriter.c            |  2 +
src/backend/replication/walsender.c           |  2 +
src/backend/storage/aio/Makefile              |  2 +
src/backend/storage/aio/aio.c                 | 90 +++++++++++++++++++++++++++
src/backend/storage/aio/aio_init.c            | 37 +++++++++++
src/backend/storage/aio/meson.build           |  2 +
src/backend/storage/ipc/ipci.c                |  3 +
src/backend/utils/init/postinit.c             |  7 +++
src/backend/utils/misc/guc_tables.c           | 23 +++++++
src/backend/utils/misc/postgresql.conf.sample |  6 ++
src/backend/utils/resowner/resowner.c         | 29 +++++++++
src/include/storage/aio.h                     | 38 +++++++++++
src/include/storage/aio_subsys.h              | 33 ++++++++++
src/include/utils/guc.h                       |  1 +
src/include/utils/guc_hooks.h                 |  2 +
src/include/utils/resowner.h                  |  5 ++
src/tools/pgindent/typedefs.list              |  1 +
24 files changed, 356 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: Basic subsystem initialization
  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