153 const int index[] = {
176 if (
state->bytes_total_is_valid &&
state->bytes_done >
state->bytes_total)
208 const int index[] = {
void pgstat_progress_start_command(ProgressCommandType cmdtype, Oid relid)
void pgstat_progress_update_param(int index, int64 val)
void pgstat_progress_update_multi_param(int nparam, const int *index, const int64 *val)
void pgstat_progress_end_command(void)
@ PROGRESS_COMMAND_BASEBACKUP
static const bbsink_ops bbsink_progress_ops
void basebackup_progress_wait_checkpoint(void)
static void bbsink_progress_end_archive(bbsink *sink)
void basebackup_progress_wait_wal_archive(bbsink_state *state)
bbsink * bbsink_progress_new(bbsink *next, bool estimate_backup_size)
void basebackup_progress_done(void)
static void bbsink_progress_begin_backup(bbsink *sink)
static void bbsink_progress_archive_contents(bbsink *sink, size_t len)
void basebackup_progress_transfer_wal(void)
void basebackup_progress_estimate_backup_size(void)
void bbsink_forward_begin_backup(bbsink *sink)
void bbsink_forward_begin_manifest(bbsink *sink)
void bbsink_forward_end_backup(bbsink *sink, XLogRecPtr endptr, TimeLineID endtli)
void bbsink_forward_cleanup(bbsink *sink)
void bbsink_forward_manifest_contents(bbsink *sink, size_t len)
void bbsink_forward_end_archive(bbsink *sink)
void bbsink_forward_archive_contents(bbsink *sink, size_t len)
void bbsink_forward_begin_archive(bbsink *sink, const char *archive_name)
void bbsink_forward_end_manifest(bbsink *sink)
#define Assert(condition)
void * palloc0(Size size)
static int list_length(const List *l)
#define PROGRESS_BASEBACKUP_PHASE_WAIT_WAL_ARCHIVE
#define PROGRESS_BASEBACKUP_PHASE_ESTIMATE_BACKUP_SIZE
#define PROGRESS_BASEBACKUP_BACKUP_TOTAL
#define PROGRESS_BASEBACKUP_TBLSPC_TOTAL
#define PROGRESS_BASEBACKUP_PHASE_STREAM_BACKUP
#define PROGRESS_BASEBACKUP_PHASE_WAIT_CHECKPOINT
#define PROGRESS_BASEBACKUP_TBLSPC_STREAMED
#define PROGRESS_BASEBACKUP_PHASE
#define PROGRESS_BASEBACKUP_PHASE_TRANSFER_WAL
#define PROGRESS_BASEBACKUP_BACKUP_STREAMED
void(* begin_backup)(bbsink *sink)
bool bytes_total_is_valid
const bbsink_ops * bbs_ops