66 bool is_recovery_guc_supported,
78 return &streamer->
base;
108 (strcmp(member->
pathname,
"standby.signal") == 0);
110 (strcmp(member->
pathname,
"postgresql.auto.conf") == 0);
131 (strcmp(member->
pathname,
"recovery.conf") == 0);
167 "postgresql.auto.conf",
173 "standby.signal",
"", 0);
189 pg_fatal(
"unexpected state while injecting recovery settings");
static void astreamer_free(astreamer *streamer)
static void astreamer_content(astreamer *streamer, astreamer_member *member, const char *data, int len, astreamer_archive_context context)
static void astreamer_finalize(astreamer *streamer)
astreamer_archive_context
@ ASTREAMER_MEMBER_HEADER
@ ASTREAMER_MEMBER_CONTENTS
@ ASTREAMER_MEMBER_TRAILER
@ ASTREAMER_ARCHIVE_TRAILER
static void astreamer_recovery_injector_content(astreamer *streamer, astreamer_member *member, const char *data, int len, astreamer_archive_context context)
astreamer * astreamer_recovery_injector_new(astreamer *next, bool is_recovery_guc_supported, PQExpBuffer recoveryconfcontents)
struct astreamer_recovery_injector astreamer_recovery_injector
static void astreamer_recovery_injector_finalize(astreamer *streamer)
static void astreamer_recovery_injector_free(astreamer *streamer)
static const astreamer_ops astreamer_recovery_injector_ops
void astreamer_inject_file(astreamer *streamer, char *pathname, char *data, int len)
#define Assert(condition)
void pfree(void *pointer)
void * palloc0(Size size)
static PQExpBuffer recoveryconfcontents
size_t strlcpy(char *dst, const char *src, size_t siz)
char linktarget[MAXPGPATH]
void(* content)(astreamer *streamer, astreamer_member *member, const char *data, int len, astreamer_archive_context context)
bool found_postgresql_auto_conf
bool is_recovery_guc_supported
bool is_postgresql_auto_conf
PQExpBuffer recoveryconfcontents
const astreamer_ops * bbs_ops