PostgreSQL Source Code  git master
archive_module.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ArchiveModuleState
struct  ArchiveModuleCallbacks


#define arch_module_check_errdetail


typedef struct ArchiveModuleState ArchiveModuleState
typedef void(* ArchiveStartupCB) (ArchiveModuleState *state)
typedef bool(* ArchiveCheckConfiguredCB) (ArchiveModuleState *state)
typedef bool(* ArchiveFileCB) (ArchiveModuleState *state, const char *file, const char *path)
typedef void(* ArchiveShutdownCB) (ArchiveModuleState *state)
typedef struct ArchiveModuleCallbacks ArchiveModuleCallbacks
typedef const ArchiveModuleCallbacks *(* ArchiveModuleInit) (void)


PGDLLEXPORT const ArchiveModuleCallbacks_PG_archive_module_init (void)


PGDLLIMPORT char * XLogArchiveLibrary
PGDLLIMPORT char * arch_module_check_errdetail_string

Macro Definition Documentation

◆ arch_module_check_errdetail

#define arch_module_check_errdetail
arch_module_check_errdetail_string = format_elog_string
void pre_format_elog_string(int errnumber, const char *domain)
Definition: elog.c:1628
char * format_elog_string(const char *fmt,...)
Definition: elog.c:1637
Definition: elog.h:152

Definition at line 63 of file archive_module.h.

Typedef Documentation

◆ ArchiveCheckConfiguredCB

typedef bool(* ArchiveCheckConfiguredCB) (ArchiveModuleState *state)

Definition at line 39 of file archive_module.h.

◆ ArchiveFileCB

typedef bool(* ArchiveFileCB) (ArchiveModuleState *state, const char *file, const char *path)

Definition at line 40 of file archive_module.h.

◆ ArchiveModuleCallbacks

◆ ArchiveModuleInit

typedef const ArchiveModuleCallbacks*(* ArchiveModuleInit) (void)

Definition at line 55 of file archive_module.h.

◆ ArchiveModuleState

◆ ArchiveShutdownCB

typedef void(* ArchiveShutdownCB) (ArchiveModuleState *state)

Definition at line 41 of file archive_module.h.

◆ ArchiveStartupCB

typedef void(* ArchiveStartupCB) (ArchiveModuleState *state)

Definition at line 38 of file archive_module.h.

Function Documentation

◆ _PG_archive_module_init()

PGDLLEXPORT const ArchiveModuleCallbacks* _PG_archive_module_init ( void  )

Definition at line 83 of file basic_archive.c.

84 {
86 }
static const ArchiveModuleCallbacks basic_archive_callbacks
Definition: basic_archive.c:50

References basic_archive_callbacks.

Variable Documentation

◆ arch_module_check_errdetail_string

PGDLLIMPORT char* arch_module_check_errdetail_string

Definition at line 93 of file pgarch.c.

Referenced by pgarch_ArchiverCopyLoop().

◆ XLogArchiveLibrary

PGDLLIMPORT char* XLogArchiveLibrary

Definition at line 92 of file pgarch.c.

Referenced by HandlePgArchInterrupts(), and LoadArchiveLibrary().