PostgreSQL Source Code  git master
basebackup.h File Reference
#include "nodes/replnodes.h"
Include dependency graph for basebackup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tablespaceinfo
 

Macros

#define MAX_RATE_LOWER   32
 
#define MAX_RATE_UPPER   1048576
 

Functions

void SendBaseBackup (BaseBackupCmd *cmd)
 

Macro Definition Documentation

◆ MAX_RATE_LOWER

#define MAX_RATE_LOWER   32

Definition at line 20 of file basebackup.h.

Referenced by parse_basebackup_options().

◆ MAX_RATE_UPPER

#define MAX_RATE_UPPER   1048576

Definition at line 21 of file basebackup.h.

Referenced by parse_basebackup_options(), and parse_max_rate().

Function Documentation

◆ SendBaseBackup()

void SendBaseBackup ( BaseBackupCmd cmd)

Definition at line 922 of file basebackup.c.

References basebackup_options::label, BaseBackupCmd::options, parse_basebackup_options(), perform_base_backup(), set_ps_display(), snprintf, update_process_title, WalSndSetState(), and WALSNDSTATE_BACKUP.

Referenced by exec_replication_command().

923 {
924  basebackup_options opt;
925 
926  parse_basebackup_options(cmd->options, &opt);
927 
929 
931  {
932  char activitymsg[50];
933 
934  snprintf(activitymsg, sizeof(activitymsg), "sending backup \"%s\"",
935  opt.label);
936  set_ps_display(activitymsg);
937  }
938 
939  perform_base_backup(&opt);
940 }
List * options
Definition: replnodes.h:44
bool update_process_title
Definition: ps_status.c:36
static void parse_basebackup_options(List *options, basebackup_options *opt)
Definition: basebackup.c:752
void set_ps_display(const char *activity)
Definition: ps_status.c:349
const char * label
Definition: basebackup.c:50
static void perform_base_backup(basebackup_options *opt)
Definition: basebackup.c:256
void WalSndSetState(WalSndState state)
Definition: walsender.c:3203
#define snprintf
Definition: port.h:193