forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcfe89f5
committed
Fix temporary tablespaces for shared filesets some more.
Commitecd9e9f fixed the problem in the wrong place, causing unwantedside-effects on the behavior of GetNextTempTableSpace(). Instead,let's make SharedFileSetInit() responsible for subbing in the valueof MyDatabaseTableSpace when the default tablespace is called for.The convention about what is in the tempTableSpaces[] array isevidently insufficiently documented, so try to improve that.It also looks like SharedFileSetInit() is doing the wrong thing in thecase where temp_tablespaces is empty. It was hard-wiring use of thepg_default tablespace, but it seems like using MyDatabaseTableSpaceis more consistent with what happens for other temp files.Back-patch the reversion of PrepareTempTablespaces()'s behavior to9.5, asecd9e9f was. The changes in SharedFileSetInit() go backto v11 where that was introduced. (Note there is net zero code changebefore v11 from these two patch sets, so nothing to release-note.)Magnus Hagander and Tom LaneDiscussion:https://postgr.es/m/CABUevExg5YEsOvqMxrjoNvb3ApVyH+9jggWGKwTDFyFCVWczGQ@mail.gmail.com1 parent1d94c39 commitcfe89f5
File tree
3 files changed
+34
-5
lines changed- src/backend
- commands
- storage/file
3 files changed
+34
-5
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1183 | 1183 |
| |
1184 | 1184 |
| |
1185 | 1185 |
| |
| 1186 | + | |
1186 | 1187 |
| |
1187 | 1188 |
| |
1188 | 1189 |
| |
| |||
1232 | 1233 |
| |
1233 | 1234 |
| |
1234 | 1235 |
| |
| 1236 | + | |
1235 | 1237 |
| |
1236 | 1238 |
| |
1237 | 1239 |
| |
| |||
1258 | 1260 |
| |
1259 | 1261 |
| |
1260 | 1262 |
| |
| 1263 | + | |
1261 | 1264 |
| |
1262 | 1265 |
| |
1263 | 1266 |
| |
| |||
1368 | 1371 |
| |
1369 | 1372 |
| |
1370 | 1373 |
| |
| 1374 | + | |
1371 | 1375 |
| |
1372 | 1376 |
| |
1373 | 1377 |
| |
| |||
1386 | 1390 |
| |
1387 | 1391 |
| |
1388 | 1392 |
| |
1389 |
| - | |
| 1393 | + | |
| 1394 | + | |
1390 | 1395 |
| |
1391 | 1396 |
| |
1392 | 1397 |
| |
|
Lines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
264 | 264 |
| |
265 | 265 |
| |
266 | 266 |
| |
267 |
| - | |
268 |
| - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
269 | 271 |
| |
270 | 272 |
| |
271 | 273 |
| |
| |||
2779 | 2781 |
| |
2780 | 2782 |
| |
2781 | 2783 |
| |
| 2784 | + | |
| 2785 | + | |
| 2786 | + | |
2782 | 2787 |
| |
2783 | 2788 |
| |
2784 | 2789 |
| |
| |||
2818 | 2823 |
| |
2819 | 2824 |
| |
2820 | 2825 |
| |
2821 |
| - | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
2822 | 2830 |
| |
2823 | 2831 |
| |
2824 | 2832 |
| |
|
Lines changed: 17 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
| 66 | + | |
| 67 | + | |
67 | 68 |
| |
68 | 69 |
| |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
69 | 85 |
| |
70 | 86 |
| |
71 | 87 |
| |
|
0 commit comments
Comments
(0)