2025-03-17 18:51:33 -04:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
|
*
|
|
|
|
|
* 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.
|
|
|
|
|
*
|
2026-01-01 13:24:10 -05:00
|
|
|
* Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
|
2025-03-17 18:51:33 -04:00
|
|
|
* 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);
|
|
|
|
|
|
2025-03-18 10:52:33 -04:00
|
|
|
|
2025-04-19 06:17:42 -04:00
|
|
|
/* method_worker.c */
|
2025-03-18 10:52:33 -04:00
|
|
|
extern bool pgaio_workers_enabled(void);
|
|
|
|
|
|
2025-03-17 18:51:33 -04:00
|
|
|
#endif /* AIO_SUBSYS_H */
|