mirror of
https://github.com/postgres/postgres.git
synced 2026-04-07 10:17:24 -04:00
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
34 lines
993 B
C
34 lines
993 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* aio_subsys.h
|
|
* Interaction with AIO as a subsystem, rather than actually issuing AIO
|
|
*
|
|
* This header is for AIO related functionality that's being called by files
|
|
* that don't perform AIO, but interact with the AIO subsystem in some
|
|
* form. E.g. postmaster.c and shared memory initialization need to initialize
|
|
* AIO but don't perform AIO.
|
|
*
|
|
* Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/storage/aio_subsys.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef AIO_SUBSYS_H
|
|
#define AIO_SUBSYS_H
|
|
|
|
|
|
/* aio_init.c */
|
|
extern void pgaio_init_backend(void);
|
|
|
|
|
|
/* aio.c */
|
|
extern void pgaio_error_cleanup(void);
|
|
extern void AtEOXact_Aio(bool is_commit);
|
|
|
|
|
|
/* method_worker.c */
|
|
extern bool pgaio_workers_enabled(void);
|
|
|
|
#endif /* AIO_SUBSYS_H */
|