PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
basebackup.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * basebackup.h
4  * Exports from replication/basebackup.c.
5  *
6  * Portions Copyright (c) 2010-2017, PostgreSQL Global Development Group
7  *
8  * src/include/replication/basebackup.h
9  *
10  *-------------------------------------------------------------------------
11  */
12 #ifndef _BASEBACKUP_H
13 #define _BASEBACKUP_H
14 
15 #include "nodes/replnodes.h"
16 
17 /*
18  * Minimum and maximum values of MAX_RATE option in BASE_BACKUP command.
19  */
20 #define MAX_RATE_LOWER 32
21 #define MAX_RATE_UPPER 1048576
22 
23 
24 typedef struct
25 {
26  char *oid;
27  char *path;
28  char *rpath; /* relative path within PGDATA, or NULL */
29  int64 size;
31 
32 extern void SendBaseBackup(BaseBackupCmd *cmd);
33 
34 extern int64 sendTablespace(char *path, bool sizeonly);
35 
36 #endif /* _BASEBACKUP_H */
char * rpath
Definition: basebackup.h:28
void SendBaseBackup(BaseBackupCmd *cmd)
Definition: basebackup.c:686
int64 sendTablespace(char *path, bool sizeonly)
Definition: basebackup.c:906