PostgreSQL Source Code
git master
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-2024, PostgreSQL Global Development Group
7
*
8
* src/include/backup/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
* Information about a tablespace
25
*
26
* In some usages, "path" can be NULL to denote the PGDATA directory itself.
27
*/
28
typedef
struct
29
{
30
Oid
oid
;
/* tablespace's OID */
31
char
*
path
;
/* full path to tablespace's directory */
32
char
*
rpath
;
/* relative path if it's within PGDATA, else
33
* NULL */
34
int64
size
;
/* total size as sent; -1 if not known */
35
}
tablespaceinfo
;
36
37
struct
IncrementalBackupInfo
;
38
39
extern
void
SendBaseBackup
(
BaseBackupCmd
*cmd,
40
struct
IncrementalBackupInfo
*ib);
41
42
#endif
/* _BASEBACKUP_H */
SendBaseBackup
void SendBaseBackup(BaseBackupCmd *cmd, struct IncrementalBackupInfo *ib)
Definition:
basebackup.c:990
int64
int64_t int64
Definition:
c.h:482
Oid
unsigned int Oid
Definition:
postgres_ext.h:31
replnodes.h
BaseBackupCmd
Definition:
replnodes.h:42
IncrementalBackupInfo
Definition:
basebackup_incremental.c:75
tablespaceinfo
Definition:
basebackup.h:29
tablespaceinfo::rpath
char * rpath
Definition:
basebackup.h:32
tablespaceinfo::size
int64 size
Definition:
basebackup.h:34
tablespaceinfo::oid
Oid oid
Definition:
basebackup.h:30
tablespaceinfo::path
char * path
Definition:
basebackup.h:31
src
include
backup
basebackup.h
Generated on Mon Dec 9 2024 00:13:24 for PostgreSQL Source Code by
1.9.1