forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdd85acf
committed
Make recovery rename tablespace_map to *.old if backup_label is not present.
If tablespace_map file is present without backup_label file, there isno use of such file. There is no harm in retaining it, but it is betterto get rid of the map file so that we don't have any redundant filein data directory and it will avoid any sort of confusion. It seemsprudent though to just rename the file out of the way rather thandelete it completely, also we ignore any error that occurs in renameoperation as even if map file is present without backup_label file,it is harmless.Back-patch to 9.5 where tablespace_map file was introduced.Amit Kapila, reviewed by Robert Haas, Alvaro Herrera and me.1 parent0e42397 commitdd85acf
1 file changed
+28
-0
lines changedLines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5912 | 5912 |
| |
5913 | 5913 |
| |
5914 | 5914 |
| |
| 5915 | + | |
5915 | 5916 |
| |
5916 | 5917 |
| |
5917 | 5918 |
| |
| |||
6138 | 6139 |
| |
6139 | 6140 |
| |
6140 | 6141 |
| |
| 6142 | + | |
| 6143 | + | |
| 6144 | + | |
| 6145 | + | |
| 6146 | + | |
| 6147 | + | |
| 6148 | + | |
| 6149 | + | |
| 6150 | + | |
| 6151 | + | |
| 6152 | + | |
| 6153 | + | |
| 6154 | + | |
| 6155 | + | |
| 6156 | + | |
| 6157 | + | |
| 6158 | + | |
| 6159 | + | |
| 6160 | + | |
| 6161 | + | |
| 6162 | + | |
| 6163 | + | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
| 6167 | + | |
| 6168 | + | |
6141 | 6169 |
| |
6142 | 6170 |
| |
6143 | 6171 |
| |
|
0 commit comments
Comments
(0)