diff options
author | Magnus Hagander <magnus@hagander.net> | 2011-01-23 12:21:23 +0100 |
---|---|---|
committer | Magnus Hagander <magnus@hagander.net> | 2011-01-23 12:21:23 +0100 |
commit | 048d148fe63102fafb2336ab5439c950dea7f692 (patch) | |
tree | a4dbc349313a1644089792ecb29139a960e676a8 /src/include/replication | |
parent | 6f59777c65d557485e933a383ebc4c3fdfc1a2b7 (diff) | |
download | postgresql-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.h | 2 | ||||
-rw-r--r-- | src/include/replication/replnodes.h | 1 |
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; |