- Notifications
You must be signed in to change notification settings - Fork28
Commit93f03da
committed
Make BufFileCreateTemp() ensure that temp tablespaces are set up.
If PrepareTempTablespaces() has never been called in the currenttransaction, OpenTemporaryFile() will fall back to using the defaulttablespace, which is a bug if the user wanted temp files placed elsewhere.gistInitBuildBuffers() appears to have this disease already, and itseems like an easy trap for future coders to fall into.We discussed other ways to close this gap, but none of them are prettieror more reliable than just having BufFileCreateTemp do it. In particular,having fd.c do this creates layering issues that we could do without.Per suggestion from Melanie Plageman. Arguably this is a bug fix, butnobody seems very excited about back-patching, so change in HEAD only.Discussion:https://postgr.es/m/CAAKRu_YwzjuGAmmaw4-8XO=OVFGR1QhY_Pq-t3wjb9ribBJb_Q@mail.gmail.com1 parentb12db9f commit93f03da
1 file changed
+12
-0
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
| 44 | + | |
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
| |||
185 | 186 |
| |
186 | 187 |
| |
187 | 188 |
| |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
188 | 200 |
| |
189 | 201 |
| |
190 | 202 |
| |
|
0 commit comments
Comments
(0)