From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Implement streaming xlog for backup tools |
Date: | 2011-10-26 18:26:38 |
Message-ID: | E1RJ8BS-0001AD-Qn@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d9bae5317300cf983dd9f01cc2e561c0eecd109a
Modified Files
--------------
doc/src/sgml/ref/allfiles.sgml | 1 +
doc/src/sgml/ref/pg_basebackup.sgml | 65 ++++-
doc/src/sgml/ref/pg_receivexlog.sgml | 270 ++++++++++++++++
doc/src/sgml/reference.sgml | 1 +
src/bin/pg_basebackup/.gitignore | 1 +
src/bin/pg_basebackup/Makefile | 15 +-
src/bin/pg_basebackup/pg_basebackup.c | 538 +++++++++++++++++++++++---------
src/bin/pg_basebackup/pg_receivexlog.c | 465 +++++++++++++++++++++++++++
src/bin/pg_basebackup/receivelog.c | 398 +++++++++++++++++++++++
src/bin/pg_basebackup/receivelog.h | 22 ++
src/bin/pg_basebackup/streamutil.c | 165 ++++++++++
src/bin/pg_basebackup/streamutil.h | 22 ++
src/tools/msvc/Mkvcbuild.pm | 7 +
13 files changed, 1805 insertions(+), 165 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-10-26 21:24:21 | pgsql: Fix pg_bsd_indent bug where newlines were not being trimmed from |
Previous Message | Magnus Hagander | 2011-10-26 17:26:46 | pgsql: MingW doesn't support wcstombs_s()... |