postgresql_16:6.14.2.4 Shutdown Callback
PostgreSQL 16 > Server Programming > Archive Modules > Archive Module Callbacks > Shutdown Callback
The shutdown_cb callback is called when the archiver process exits (e.g., after an error) or the value of (see guc-archive-library) changes. If no shutdown_cb is defined, no special action is taken in these situations. If the archive module has any state, this callback should free it to avoid leaks. typedef void (*ArchiveShutdownCB) (ArchiveModuleState *state);