PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "astreamer_inject.h"
#include "common/file_perm.h"
#include "common/logging.h"
Go to the source code of this file.
Data Structures | |
struct | astreamer_recovery_injector |
Typedefs | |
typedef struct astreamer_recovery_injector | astreamer_recovery_injector |
Functions | |
static void | astreamer_recovery_injector_content (astreamer *streamer, astreamer_member *member, const char *data, int len, astreamer_archive_context context) |
static void | astreamer_recovery_injector_finalize (astreamer *streamer) |
static void | astreamer_recovery_injector_free (astreamer *streamer) |
astreamer * | astreamer_recovery_injector_new (astreamer *next, bool is_recovery_guc_supported, PQExpBuffer recoveryconfcontents) |
void | astreamer_inject_file (astreamer *streamer, char *pathname, char *data, int len) |
Variables | |
static const astreamer_ops | astreamer_recovery_injector_ops |
typedef struct astreamer_recovery_injector astreamer_recovery_injector |
void astreamer_inject_file | ( | astreamer * | streamer, |
char * | pathname, | ||
char * | data, | ||
int | len | ||
) |
Definition at line 219 of file astreamer_inject.c.
References astreamer_content(), ASTREAMER_MEMBER_CONTENTS, ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, data, astreamer_member::gid, astreamer_member::is_directory, astreamer_member::is_link, len, astreamer_member::linktarget, MAXPGPATH, astreamer_member::mode, astreamer_member::pathname, pg_file_create_mode, astreamer_member::size, strlcpy(), and astreamer_member::uid.
Referenced by astreamer_recovery_injector_content(), ReceiveArchiveStream(), and ReceiveTarFile().
|
static |
Definition at line 85 of file astreamer_inject.c.
References Assert, ASTREAMER_ARCHIVE_TRAILER, astreamer_content(), astreamer_inject_file(), ASTREAMER_MEMBER_CONTENTS, ASTREAMER_MEMBER_HEADER, ASTREAMER_MEMBER_TRAILER, astreamer_recovery_injector::base, astreamer::bbs_next, context, PQExpBufferData::data, data, astreamer_recovery_injector::found_postgresql_auto_conf, astreamer_recovery_injector::is_postgresql_auto_conf, astreamer_recovery_injector::is_recovery_guc_supported, PQExpBufferData::len, len, astreamer_recovery_injector::member, astreamer_member::pathname, pg_fatal, astreamer_recovery_injector::recoveryconfcontents, astreamer_member::size, and astreamer_recovery_injector::skip_file.
|
static |
Definition at line 200 of file astreamer_inject.c.
References astreamer_finalize(), and astreamer::bbs_next.
|
static |
Definition at line 209 of file astreamer_inject.c.
References astreamer_free(), astreamer::bbs_next, and pfree().
astreamer* astreamer_recovery_injector_new | ( | astreamer * | next, |
bool | is_recovery_guc_supported, | ||
PQExpBuffer | recoveryconfcontents | ||
) |
Definition at line 65 of file astreamer_inject.c.
References astreamer_recovery_injector_ops, astreamer_recovery_injector::base, astreamer::bbs_next, astreamer::bbs_ops, astreamer_recovery_injector::is_recovery_guc_supported, next, palloc0(), astreamer_recovery_injector::recoveryconfcontents, and recoveryconfcontents.
Referenced by CreateBackupStreamer().
|
static |
Definition at line 36 of file astreamer_inject.c.
Referenced by astreamer_recovery_injector_new().