Convert AIO to use the new shmem allocation functions
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Author:
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2026-04-05T23:13:04Z
Releases:
19 (unreleased)
Convert AIO to use the new shmem allocation functions This replaces the "shmem_size" and "shmem_init" callbacks in the IO methods table with the same ShmemCallback struct that we now use in other subsystems Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com> Reviewed-by: Matthias van de Meent <boekewurm+postgres@gmail.com> Reviewed-by: Daniel Gustafsson <daniel@yesql.se> Discussion: https://www.postgresql.org/message-id/CAExHW5vM1bneLYfg0wGeAa=52UiJ3z4vKd3AJ72X8Fw6k3KKrg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/storage/aio/aio_init.c | modified | +66 −46 |
| src/backend/storage/aio/method_io_uring.c | modified | +22 −16 |
| src/backend/storage/aio/method_worker.c | modified | +33 −51 |
| src/backend/storage/ipc/ipci.c | modified | +0 −2 |
| src/include/storage/aio_internal.h | modified | +3 −13 |
| src/include/storage/aio_subsys.h | modified | +0 −3 |
| src/include/storage/subsystemlist.h | modified | +3 −0 |
Discussion
- Better shared data structure management and resizable shared data structures 87 messages · 2026-02-13 → 2026-06-15