diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/access/xlog.h | 3 | ||||
| -rw-r--r-- | src/include/replication/basebackup.h | 14 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index 6d384d3ce6d..77187c12beb 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -384,8 +384,7 @@ typedef enum SessionBackupState extern XLogRecPtr do_pg_start_backup(const char *backupidstr, bool fast, TimeLineID *starttli_p, StringInfo labelfile, - List **tablespaces, StringInfo tblspcmapfile, - bool needtblspcmapfile); + List **tablespaces, StringInfo tblspcmapfile); extern XLogRecPtr do_pg_stop_backup(char *labelfile, bool waitforarchive, TimeLineID *stoptli_p); extern void do_pg_abort_backup(int code, Datum arg); diff --git a/src/include/replication/basebackup.h b/src/include/replication/basebackup.h index cdfe4b5e19d..379eb418674 100644 --- a/src/include/replication/basebackup.h +++ b/src/include/replication/basebackup.h @@ -20,12 +20,18 @@ #define MAX_RATE_LOWER 32 #define MAX_RATE_UPPER 1048576 +/* + * Information about a tablespace + * + * In some usages, "path" can be NULL to denote the PGDATA directory itself. + */ typedef struct { - char *oid; - char *path; - char *rpath; /* relative path within PGDATA, or NULL */ - int64 size; + char *oid; /* tablespace's OID, as a decimal string */ + char *path; /* full path to tablespace's directory */ + char *rpath; /* relative path if it's within PGDATA, else + * NULL */ + int64 size; /* total size as sent; -1 if not known */ } tablespaceinfo; extern void SendBaseBackup(BaseBackupCmd *cmd); |
