Commit 72d422a
committed
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.1 parent d02f164 commit 72d422a
File tree
12 files changed
+519
-134
lines changed- doc/src/sgml
- ref
- src
- backend
- access/transam
- replication
- bin/pg_basebackup
- include
- access
- replication
12 files changed
+519
-134
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
841 | 844 | | |
842 | 845 | | |
843 | 846 | | |
| |||
965 | 968 | | |
966 | 969 | | |
967 | 970 | | |
968 | | - | |
969 | | - | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
978 | | - | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
979 | 985 | | |
980 | 986 | | |
981 | 987 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16591 | 16591 | | |
16592 | 16592 | | |
16593 | 16593 | | |
16594 | | - | |
16595 | | - | |
16596 | | - | |
16597 | | - | |
16598 | | - | |
| 16594 | + | |
| 16595 | + | |
| 16596 | + | |
| 16597 | + | |
| 16598 | + | |
| 16599 | + | |
16599 | 16600 | | |
16600 | 16601 | | |
16601 | 16602 | | |
| |||
16610 | 16611 | | |
16611 | 16612 | | |
16612 | 16613 | | |
16613 | | - | |
| 16614 | + | |
| 16615 | + | |
16614 | 16616 | | |
16615 | 16617 | | |
16616 | 16618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1882 | 1882 | | |
1883 | 1883 | | |
1884 | 1884 | | |
1885 | | - | |
| 1885 | + | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
| |||
1968 | 1968 | | |
1969 | 1969 | | |
1970 | 1970 | | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
1971 | 1984 | | |
1972 | 1985 | | |
1973 | 1986 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
590 | 599 | | |
591 | 600 | | |
592 | 601 | | |
593 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
594 | 605 | | |
| 606 | + | |
595 | 607 | | |
596 | 608 | | |
597 | 609 | | |
| |||
0 commit comments