- Notifications
You must be signed in to change notification settings - Fork5
Commit8d938eb
committed
Change the way pg_basebackup's tablespace mapping is implemented.
Previously, we would first create the symlinks the way they are in theoriginal system, and at the end replace them with the mapped symlinks.That never really made much sense, so now we create the symlink pointingto the correct location to begin with, so that there's no need to fixthem at the end.The old coding didn't work correctly on Windows, because Windows junctionpoints look more like directories than files, and ought to be removed withrmdir rather than unlink. Also, it incorrectly used "%d" rather than "%u"to print an Oid, but that's gone now.Report and patch by Amit Kapila, with minor changes by me. Reviewed byMauMau. Backpatch to 9.4, where the --tablespace feature was added.1 parent3feda1b commit8d938eb
1 file changed
+20
-44
lines changedLines changed: 20 additions & 44 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
109 | 109 |
| |
110 | 110 |
| |
111 | 111 |
| |
112 |
| - | |
113 | 112 |
| |
114 | 113 |
| |
115 | 114 |
| |
| |||
1109 | 1108 |
| |
1110 | 1109 |
| |
1111 | 1110 |
| |
1112 |
| - | |
1113 |
| - | |
1114 |
| - | |
1115 |
| - | |
1116 |
| - | |
1117 |
| - | |
1118 |
| - | |
1119 |
| - | |
1120 |
| - | |
1121 |
| - | |
1122 |
| - | |
1123 |
| - | |
1124 |
| - | |
1125 |
| - | |
1126 |
| - | |
1127 |
| - | |
1128 |
| - | |
1129 |
| - | |
1130 |
| - | |
1131 |
| - | |
1132 |
| - | |
1133 |
| - | |
1134 |
| - | |
1135 |
| - | |
1136 |
| - | |
1137 |
| - | |
1138 |
| - | |
1139 |
| - | |
1140 | 1111 |
| |
1141 | 1112 |
| |
1142 | 1113 |
| |
| |||
1151 | 1122 |
| |
1152 | 1123 |
| |
1153 | 1124 |
| |
| 1125 | + | |
1154 | 1126 |
| |
1155 | 1127 |
| |
1156 |
| - | |
| 1128 | + | |
1157 | 1129 |
| |
1158 | 1130 |
| |
1159 | 1131 |
| |
| 1132 | + | |
1160 | 1133 |
| |
1161 | 1134 |
| |
1162 | 1135 |
| |
1163 |
| - | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1164 | 1139 |
| |
1165 | 1140 |
| |
1166 | 1141 |
| |
| |||
1284 | 1259 |
| |
1285 | 1260 |
| |
1286 | 1261 |
| |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
1287 | 1271 |
| |
1288 | 1272 |
| |
1289 |
| - | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
1290 | 1276 |
| |
1291 | 1277 |
| |
1292 | 1278 |
| |
1293 |
| - | |
| 1279 | + | |
| 1280 | + | |
1294 | 1281 |
| |
1295 | 1282 |
| |
1296 | 1283 |
| |
| |||
1793 | 1780 |
| |
1794 | 1781 |
| |
1795 | 1782 |
| |
1796 |
| - | |
1797 |
| - | |
1798 |
| - | |
1799 |
| - | |
1800 |
| - | |
1801 |
| - | |
1802 |
| - | |
1803 |
| - | |
1804 |
| - | |
1805 |
| - | |
1806 |
| - | |
1807 | 1783 |
| |
1808 | 1784 |
| |
1809 | 1785 |
| |
|
0 commit comments
Comments
(0)