- Notifications
You must be signed in to change notification settings - Fork28
Commit9d178fb
committed
Defer restoration of libraries in parallel workers.
Several users of extensions complained of crashes in parallel workersthat turned out to be due to syscache access from their _PG_init()functions. Reorder the initialization of parallel workers so thatlibraries are restored after the caches are initialized, and inside atransaction.This was reported in bug #15350 and elsewhere. We don't consider itto be a bug: extensions shouldn't do that, because then they can't beused in shared_preload_libraries. However, it's a fairly obscurehazard and these extensions worked in practice before parallel querycame along. So let's make it work. Later commits might add a warningmessage and eventually an error.Back-patch to 9.6, where parallel query landed.Author: Thomas MunroReviewed-by: Amit KapilaReported-by: Kieran McCusker, JimmyDiscussion:https://postgr.es/m/153512195228.1489.8545997741965926448%40wrigleys.postgresql.org1 parent6449616 commit9d178fb
1 file changed
+9
-9
lines changedLines changed: 9 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1303 | 1303 |
| |
1304 | 1304 |
| |
1305 | 1305 |
| |
1306 |
| - | |
1307 |
| - | |
1308 |
| - | |
1309 |
| - | |
1310 |
| - | |
1311 |
| - | |
1312 |
| - | |
1313 |
| - | |
1314 | 1306 |
| |
1315 | 1307 |
| |
1316 | 1308 |
| |
| |||
1333 | 1325 |
| |
1334 | 1326 |
| |
1335 | 1327 |
| |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
1336 | 1337 |
| |
1337 | 1338 |
| |
1338 |
| - | |
1339 | 1339 |
| |
1340 | 1340 |
| |
1341 | 1341 |
| |
|
0 commit comments
Comments
(0)