PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | BaseBackupTargetType |
struct | BaseBackupTargetHandle |
Typedefs | |
typedef struct BaseBackupTargetType | BaseBackupTargetType |
Functions | |
static void | initialize_target_list (void) |
static bbsink * | blackhole_get_sink (bbsink *next_sink, void *detail_arg) |
static bbsink * | server_get_sink (bbsink *next_sink, void *detail_arg) |
static void * | reject_target_detail (char *target, char *target_detail) |
static void * | server_check_detail (char *target, char *target_detail) |
void | BaseBackupAddTarget (char *name, void *(*check_detail)(char *, char *), bbsink *(*get_sink)(bbsink *, void *)) |
BaseBackupTargetHandle * | BaseBackupGetTargetHandle (char *target, char *target_detail) |
bbsink * | BaseBackupGetSink (BaseBackupTargetHandle *handle, bbsink *next_sink) |
Variables | |
static BaseBackupTargetType | builtin_backup_targets [] |
static List * | BaseBackupTargetTypeList = NIL |
typedef struct BaseBackupTargetType BaseBackupTargetType |
void BaseBackupAddTarget | ( | char * | name, |
void *(*)(char *, char *) | check_detail, | ||
bbsink *(*)(bbsink *, void *) | get_sink | ||
) |
Definition at line 61 of file basebackup_target.c.
References BaseBackupTargetTypeList, BaseBackupTargetType::check_detail, BaseBackupTargetType::get_sink, initialize_target_list(), lappend(), lfirst, MemoryContextSwitchTo(), BaseBackupTargetType::name, name, NIL, palloc(), pstrdup(), and TopMemoryContext.
Referenced by _PG_init().
bbsink* BaseBackupGetSink | ( | BaseBackupTargetHandle * | handle, |
bbsink * | next_sink | ||
) |
Definition at line 163 of file basebackup_target.c.
References BaseBackupTargetHandle::detail_arg, BaseBackupTargetType::get_sink, and BaseBackupTargetHandle::type.
Referenced by SendBaseBackup().
BaseBackupTargetHandle* BaseBackupGetTargetHandle | ( | char * | target, |
char * | target_detail | ||
) |
Definition at line 117 of file basebackup_target.c.
References BaseBackupTargetTypeList, BaseBackupTargetType::check_detail, BaseBackupTargetHandle::detail_arg, ereport, errcode(), errmsg(), ERROR, initialize_target_list(), lfirst, BaseBackupTargetType::name, NIL, palloc(), and BaseBackupTargetHandle::type.
Referenced by parse_basebackup_options().
Definition at line 194 of file basebackup_target.c.
|
static |
Definition at line 172 of file basebackup_target.c.
References BaseBackupTargetTypeList, builtin_backup_targets, lappend(), MemoryContextSwitchTo(), BaseBackupTargetType::name, and TopMemoryContext.
Referenced by BaseBackupAddTarget(), and BaseBackupGetTargetHandle().
|
static |
|
static |
Definition at line 203 of file basebackup_target.c.
References bbsink_server_new().
Definition at line 53 of file basebackup_target.c.
Referenced by BaseBackupAddTarget(), BaseBackupGetTargetHandle(), and initialize_target_list().
|
static |
Definition at line 40 of file basebackup_target.c.
Referenced by initialize_target_list().