Implement streaming xlog for backup tools
authorMagnus Hagander <magnus@hagander.net>
Wed, 26 Oct 2011 18:13:33 +0000 (20:13 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 26 Oct 2011 18:13:33 +0000 (20:13 +0200)
commitd9bae5317300cf983dd9f01cc2e561c0eecd109a
tree0bb6adff3bdae50f0a272c787bc75b21e833a040
parent2b64f3f17a4c1064008ea7cfe52d8eabe0b86370
Implement streaming xlog for backup tools

Add option for parallel streaming of the transaction log while a
base backup is running, to get the logfiles before the server has
removed them.

Also add a tool called pg_receivexlog, which streams the transaction
log into files, creating a log archive without having to wait for
segments to complete, thus decreasing the window of data loss without
having to waste space using archive_timeout. This works best in
combination with archive_command - suggested usage docs etc coming later.
13 files changed:
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/pg_basebackup.sgml
doc/src/sgml/ref/pg_receivexlog.sgml [new file with mode: 0644]
doc/src/sgml/reference.sgml
src/bin/pg_basebackup/.gitignore
src/bin/pg_basebackup/Makefile
src/bin/pg_basebackup/pg_basebackup.c
src/bin/pg_basebackup/pg_receivexlog.c [new file with mode: 0644]
src/bin/pg_basebackup/receivelog.c [new file with mode: 0644]
src/bin/pg_basebackup/receivelog.h [new file with mode: 0644]
src/bin/pg_basebackup/streamutil.c [new file with mode: 0644]
src/bin/pg_basebackup/streamutil.h [new file with mode: 0644]
src/tools/msvc/Mkvcbuild.pm