forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita72d613
committed
Fix pg_dumpall with in-place tablespaces
In-place tablespaces would be dumped with the path produced bypg_tablespace_location(), which is in this case a relative path built aspg_tblspc/OID, but this would fail to restore as such tablespaces needto use an empty string as location. In order to detect if an in-placetablespace is used, this commit checks if the path returned is relativeand adapts the dump contents in consequence.Like the other changes related to in-place tablespaces, no backpatch isdone as these are only intended for development purposes. Rui Zhao hasfixed the code, while the test is from me.Author: Rui Zhao, Michael PaquierDiscussion:https://postgr.es/m/80c80b4a-b87b-456f-bd46-1ae326601d79.xiyuan.zr@alibaba-inc.com1 parentf05b1fa commita72d613
2 files changed
+26
-1
lines changedLines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1286 | 1286 |
| |
1287 | 1287 |
| |
1288 | 1288 |
| |
1289 |
| - | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
1290 | 1299 |
| |
1291 | 1300 |
| |
1292 | 1301 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1907 | 1907 |
| |
1908 | 1908 |
| |
1909 | 1909 |
| |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
1910 | 1926 |
| |
1911 | 1927 |
| |
1912 | 1928 |
| |
|
0 commit comments
Comments
(0)