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
 

Macros

#define arch_module_check_errdetail
 

Typedefs

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)
 

Functions

PGDLLEXPORT const ArchiveModuleCallbacks_PG_archive_module_init (void)
 

Variables

PGDLLIMPORT char * XLogArchiveLibrary
 
PGDLLIMPORT char * arch_module_check_errdetail_string
 

Macro Definition Documentation

◆ arch_module_check_errdetail

#define arch_module_check_errdetail
Value:
arch_module_check_errdetail_string = format_elog_string
void pre_format_elog_string(int errnumber, const char *domain)
Definition: elog.c:1645
char * format_elog_string(const char *fmt,...)
Definition: elog.c:1654
#define TEXTDOMAIN
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 82 of file basic_archive.c.

83 {
85 }
static const ArchiveModuleCallbacks basic_archive_callbacks
Definition: basic_archive.c:49

References basic_archive_callbacks.

Variable Documentation

◆ arch_module_check_errdetail_string

PGDLLIMPORT char* arch_module_check_errdetail_string
extern

Definition at line 93 of file pgarch.c.

Referenced by pgarch_ArchiverCopyLoop().

◆ XLogArchiveLibrary

PGDLLIMPORT char* XLogArchiveLibrary
extern

Definition at line 92 of file pgarch.c.

Referenced by HandlePgArchInterrupts(), and LoadArchiveLibrary().