diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:19:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 12:19:15 +0000 |
commit | 6eb9c5a5657d1fe77b55cc261450f3538d35a94d (patch) | |
tree | 657d8194422a5daccecfd42d654b8a245ef7b4c8 /src/include/replication/basebackup.h | |
parent | Initial commit. (diff) | |
download | postgresql-13-6eb9c5a5657d1fe77b55cc261450f3538d35a94d.tar.xz postgresql-13-6eb9c5a5657d1fe77b55cc261450f3538d35a94d.zip |
Adding upstream version 13.4.upstream/13.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/include/replication/basebackup.h')
-rw-r--r-- | src/include/replication/basebackup.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/replication/basebackup.h b/src/include/replication/basebackup.h new file mode 100644 index 0000000..923a651 --- /dev/null +++ b/src/include/replication/basebackup.h @@ -0,0 +1,39 @@ +/*------------------------------------------------------------------------- + * + * basebackup.h + * Exports from replication/basebackup.c. + * + * Portions Copyright (c) 2010-2020, PostgreSQL Global Development Group + * + * src/include/replication/basebackup.h + * + *------------------------------------------------------------------------- + */ +#ifndef _BASEBACKUP_H +#define _BASEBACKUP_H + +#include "nodes/replnodes.h" + +struct backup_manifest_info; /* avoid including backup_manifest.h */ + + +/* + * Minimum and maximum values of MAX_RATE option in BASE_BACKUP command. + */ +#define MAX_RATE_LOWER 32 +#define MAX_RATE_UPPER 1048576 + +typedef struct +{ + char *oid; + char *path; + char *rpath; /* relative path within PGDATA, or NULL */ + int64 size; +} tablespaceinfo; + +extern void SendBaseBackup(BaseBackupCmd *cmd); + +extern int64 sendTablespace(char *path, char *oid, bool sizeonly, + struct backup_manifest_info *manifest); + +#endif /* _BASEBACKUP_H */ |