Commit 5344723
committed
Remove unnecessary Windows-specific basebackup code.
Commit c6f2f01 added an explicit check for a Windows "junction point".
That turned out to be needed only because get_dirent_type() was busted
on Windows. It's been fixed by commit 9d3444d, so remove it.
Add a TAP-test to demonstrate that in-place tablespaces are copied by
pg_basebackup. This exercises the codepath that would fail before
c6f2f01 on Windows, and shows that it still doesn't fail now that we're
using get_dirent_type() on both Windows and Unix.
Back-patch to 15, where in-place tablespaces arrived and caused this
problem (ie directories where previously only symlinks were expected).
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CA%2BhUKGLzLK4PUPx0_AwXEWXOYAejU%3D7XpxnYE55Y%2Be7hB2N3FA%40mail.gmail.com1 parent 9d3444d commit 5344723
File tree
2 files changed
+17
-5
lines changed- src
- backend/access/transam
- bin/pg_basebackup/t
2 files changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8302 | 8302 | | |
8303 | 8303 | | |
8304 | 8304 | | |
8305 | | - | |
8306 | | - | |
8307 | | - | |
8308 | | - | |
8309 | 8305 | | |
8310 | 8306 | | |
8311 | | - | |
8312 | 8307 | | |
8313 | 8308 | | |
8314 | 8309 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
907 | 924 | | |
0 commit comments