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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/protocol.sgml | modified | +17 −2 |
| doc/src/sgml/ref/pg_basebackup.sgml | modified | +30 −2 |
| src/backend/replication/basebackup.c | modified | +118 −31 |
| src/backend/replication/repl_gram.y | modified | +8 −2 |
| src/backend/replication/repl_scanner.l | modified | +1 −0 |
| src/backend/replication/walsender.c | modified | +6 −2 |
| src/bin/pg_basebackup/pg_basebackup.c | modified | +16 −5 |
| src/include/replication/walsender.h | modified | +1 −0 |