pgsql: Add option to include WAL in base backup
pgsql: Add option to include WAL in base backup
От:
Magnus Hagander <magnus@hagander.net>
Дата:
Add option to include WAL in base backup When included, this makes the base backup a complete working "clone" of the initial database, ready to have a postmaster started against it without the need to set up any log archiving or similar. Magnus Hagander, reviewed by Fujii Masao and Heikki Linnakangas Branch ------ master Details ------- http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=507069de6dbe18c2163f27fbc780673eef8c5622 Modified Files -------------- doc/src/sgml/protocol.sgml | 19 ++++- doc/src/sgml/ref/pg_basebackup.sgml | 32 +++++++- src/backend/replication/basebackup.c | 149 +++++++++++++++++++++++++------- src/backend/replication/repl_gram.y | 10 ++- src/backend/replication/repl_scanner.l | 1 + src/backend/replication/walsender.c | 8 ++- src/bin/pg_basebackup/pg_basebackup.c | 21 ++++- src/include/replication/walsender.h | 1 + 8 files changed, 197 insertions(+), 44 deletions(-)