summaryrefslogtreecommitdiff
path: root/src/include/replication
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2011-01-23 12:21:23 +0100
committerMagnus Hagander <magnus@hagander.net>2011-01-23 12:21:23 +0100
commit048d148fe63102fafb2336ab5439c950dea7f692 (patch)
treea4dbc349313a1644089792ecb29139a960e676a8 /src/include/replication
parent6f59777c65d557485e933a383ebc4c3fdfc1a2b7 (diff)
downloadpostgresql-048d148fe63102fafb2336ab5439c950dea7f692.tar.gz
Add pg_basebackup tool for streaming base backups
This tool makes it possible to do the pg_start_backup/ copy files/pg_stop_backup step in a single command. There are still some steps to be done before this is a complete backup solution, such as the ability to stream the required WAL logs, but it's still usable, and could do with some buildfarm coverage. In passing, make the checkpoint request optionally fast instead of hardcoding it. Magnus Hagander, reviewed by Fujii Masao and Dimitri Fontaine
Diffstat (limited to 'src/include/replication')
-rw-r--r--src/include/replication/basebackup.h2
-rw-r--r--src/include/replication/replnodes.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/include/replication/basebackup.h b/src/include/replication/basebackup.h
index eb2e160176..80f814b2e7 100644
--- a/src/include/replication/basebackup.h
+++ b/src/include/replication/basebackup.h
@@ -12,6 +12,6 @@
#ifndef _BASEBACKUP_H
#define _BASEBACKUP_H
-extern void SendBaseBackup(const char *backup_label, bool progress);
+extern void SendBaseBackup(const char *backup_label, bool progress, bool fastcheckpoint);
#endif /* _BASEBACKUP_H */
diff --git a/src/include/replication/replnodes.h b/src/include/replication/replnodes.h
index 4f4a1a3bac..fc814146ba 100644
--- a/src/include/replication/replnodes.h
+++ b/src/include/replication/replnodes.h
@@ -47,6 +47,7 @@ typedef struct BaseBackupCmd
NodeTag type;
char *label;
bool progress;
+ bool fastcheckpoint;
} BaseBackupCmd;