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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d02f164) | patch
Map basebackup tablespaces using a tablespace_map file
2015年5月12日 13:29:10 +0000 (09:29 -0400)
2015年5月12日 13:29:10 +0000 (09:29 -0400)
commit 72d422a5227ef6f76f412486a395aba9f53bf3f0
Map basebackup tablespaces using a tablespace_map file

Windows can't reliably restore symbolic links from a tar format, so
instead during backup start we create a tablespace_map file, which is
used by the restoring postgres to create the correct links in pg_tblspc.
The backup protocol also now has an option to request this file to be
included in the backup stream, and this is used by pg_basebackup when
operating in tar mode.

This is done on all platforms, not just Windows.

This means that pg_basebackup will not not work in tar mode against 9.4
and older servers, as this protocol option isn't implemented there.

Amit Kapila, reviewed by Dilip Kumar, with a little editing from me.
12 files changed:
doc/src/sgml/backup.sgml diff | blob | blame | history
doc/src/sgml/func.sgml diff | blob | blame | history
doc/src/sgml/protocol.sgml diff | blob | blame | history
doc/src/sgml/ref/pg_basebackup.sgml diff | blob | blame | history
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/access/transam/xlogfuncs.c diff | blob | blame | history
src/backend/replication/basebackup.c diff | blob | blame | history
src/backend/replication/repl_gram.y diff | blob | blame | history
src/backend/replication/repl_scanner.l diff | blob | blame | history
src/bin/pg_basebackup/pg_basebackup.c diff | blob | blame | history
src/include/access/xlog.h diff | blob | blame | history
src/include/replication/basebackup.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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