git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1885c88) | patch
Allow pg_basebackup to stream transaction log in tar mode
2016年10月23日 13:16:31 +0000 (15:16 +0200)
2016年10月23日 13:23:11 +0000 (15:23 +0200)
commit 56c7d8d4552180fd66fe48423bb2a9bb767c2d87
Allow pg_basebackup to stream transaction log in tar mode

This will write the received transaction log into a file called
pg_wal.tar(.gz) next to the other tarfiles instead of writing it to
base.tar. When using fetch mode, the transaction log is still written to
base.tar like before, and when used against a pre-10 server, the file
is named pg_xlog.tar.

To do this, implement a new concept of a "walmethod", which is
responsible for writing the WAL. Two implementations exist, one that
writes to a plain directory (which is also used by pg_receivexlog) and
one that writes to a tar file with optional compression.

Reviewed by Michael Paquier
doc/src/sgml/ref/pg_basebackup.sgml diff | blob | blame | history
src/bin/pg_basebackup/Makefile diff | blob | blame | history
src/bin/pg_basebackup/pg_basebackup.c diff | blob | blame | history
src/bin/pg_basebackup/pg_receivexlog.c diff | blob | blame | history
src/bin/pg_basebackup/receivelog.c diff | blob | blame | history
src/bin/pg_basebackup/receivelog.h diff | blob | blame | history
src/bin/pg_basebackup/t/010_pg_basebackup.pl diff | blob | blame | history
src/bin/pg_basebackup/walmethods.c [new file with mode: 0644] blob
src/bin/pg_basebackup/walmethods.h [new file with mode: 0644] blob
src/include/pgtar.h diff | blob | blame | history
src/port/tar.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /