PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "backup/basebackup_sink.h"
#include "commands/progress.h"
#include "pgstat.h"
Go to the source code of this file.
Functions | |
static void | bbsink_progress_begin_backup (bbsink *sink) |
static void | bbsink_progress_archive_contents (bbsink *sink, size_t len) |
static void | bbsink_progress_end_archive (bbsink *sink) |
bbsink * | bbsink_progress_new (bbsink *next, bool estimate_backup_size) |
void | basebackup_progress_wait_checkpoint (void) |
void | basebackup_progress_estimate_backup_size (void) |
void | basebackup_progress_wait_wal_archive (bbsink_state *state) |
void | basebackup_progress_transfer_wal (void) |
void | basebackup_progress_done (void) |
Variables | |
static const bbsink_ops | bbsink_progress_ops |
void basebackup_progress_done | ( | void | ) |
Definition at line 239 of file basebackup_progress.c.
References pgstat_progress_end_command().
Referenced by perform_base_backup().
void basebackup_progress_estimate_backup_size | ( | void | ) |
Definition at line 196 of file basebackup_progress.c.
References pgstat_progress_update_param(), PROGRESS_BASEBACKUP_PHASE, and PROGRESS_BASEBACKUP_PHASE_ESTIMATE_BACKUP_SIZE.
Referenced by perform_base_backup().
void basebackup_progress_transfer_wal | ( | void | ) |
Definition at line 229 of file basebackup_progress.c.
References pgstat_progress_update_param(), PROGRESS_BASEBACKUP_PHASE, and PROGRESS_BASEBACKUP_PHASE_TRANSFER_WAL.
Referenced by perform_base_backup().
void basebackup_progress_wait_checkpoint | ( | void | ) |
Definition at line 186 of file basebackup_progress.c.
References pgstat_progress_update_param(), PROGRESS_BASEBACKUP_PHASE, and PROGRESS_BASEBACKUP_PHASE_WAIT_CHECKPOINT.
Referenced by perform_base_backup().
void basebackup_progress_wait_wal_archive | ( | bbsink_state * | state | ) |
Definition at line 206 of file basebackup_progress.c.
References list_length(), pgstat_progress_update_multi_param(), PROGRESS_BASEBACKUP_PHASE, PROGRESS_BASEBACKUP_PHASE_WAIT_WAL_ARCHIVE, PROGRESS_BASEBACKUP_TBLSPC_STREAMED, and val.
Referenced by perform_base_backup().
|
static |
Definition at line 150 of file basebackup_progress.c.
References bbsink::bbs_state, bbsink_forward_archive_contents(), len, pgstat_progress_update_multi_param(), PROGRESS_BASEBACKUP_BACKUP_STREAMED, PROGRESS_BASEBACKUP_BACKUP_TOTAL, and val.
|
static |
Definition at line 84 of file basebackup_progress.c.
References bbsink::bbs_state, bbsink_forward_begin_backup(), bbsink_state::bytes_total, bbsink_state::bytes_total_is_valid, list_length(), pgstat_progress_update_multi_param(), PROGRESS_BASEBACKUP_BACKUP_TOTAL, PROGRESS_BASEBACKUP_PHASE, PROGRESS_BASEBACKUP_PHASE_STREAM_BACKUP, PROGRESS_BASEBACKUP_TBLSPC_TOTAL, bbsink_state::tablespaces, and val.
|
static |
Definition at line 114 of file basebackup_progress.c.
References bbsink::bbs_state, bbsink_forward_end_archive(), list_length(), pgstat_progress_update_param(), PROGRESS_BASEBACKUP_TBLSPC_STREAMED, bbsink_state::tablespace_num, and bbsink_state::tablespaces.
Definition at line 59 of file basebackup_progress.c.
References Assert, bbsink::bbs_next, bbsink::bbs_ops, bbsink_progress_ops, InvalidOid, next, palloc0(), pgstat_progress_start_command(), pgstat_progress_update_param(), PROGRESS_BASEBACKUP_BACKUP_TOTAL, and PROGRESS_COMMAND_BASEBACKUP.
Referenced by SendBaseBackup().
|
static |
Definition at line 42 of file basebackup_progress.c.
Referenced by bbsink_progress_new().