forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit175ff65
committed
Fix possible crash reading pg_stat_activity.
With the old code, a backend that read pg_stat_activity without everhaving executed a parallel query might see a backend in the midst ofexecuting one waiting on a DSA LWLock, resulting in a crash. Thesolution is for backends to register the tranche at startup time, notthe first time a parallel query is executed.Report by Andreas Seltenreich. Patch by me, reviewed by Thomas Munro.1 parent82f8107 commit175ff65
File tree
4 files changed
+11
-25
lines changed- src
- backend
- executor
- storage/lmgr
- utils/mmgr
- include/utils
4 files changed
+11
-25
lines changedLines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
489 |
| - | |
490 | 489 |
| |
491 | 490 |
| |
492 | 491 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
| 511 | + | |
| 512 | + | |
511 | 513 |
| |
512 | 514 |
| |
513 | 515 |
| |
|
Lines changed: 7 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
276 | 276 |
| |
277 | 277 |
| |
278 | 278 |
| |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 | 279 |
| |
285 | 280 |
| |
286 | 281 |
| |
| |||
326 | 321 |
| |
327 | 322 |
| |
328 | 323 |
| |
329 |
| - | |
330 | 324 |
| |
331 | 325 |
| |
332 | 326 |
| |
| |||
405 | 399 |
| |
406 | 400 |
| |
407 | 401 |
| |
408 |
| - | |
| 402 | + | |
409 | 403 |
| |
410 | 404 |
| |
411 | 405 |
| |
| |||
419 | 413 |
| |
420 | 414 |
| |
421 | 415 |
| |
422 |
| - | |
423 |
| - | |
424 |
| - | |
| 416 | + | |
425 | 417 |
| |
426 | 418 |
| |
427 |
| - | |
| 419 | + | |
428 | 420 |
| |
429 | 421 |
| |
430 | 422 |
| |
| |||
446 | 438 |
| |
447 | 439 |
| |
448 | 440 |
| |
449 |
| - | |
| 441 | + | |
450 | 442 |
| |
451 | 443 |
| |
452 | 444 |
| |
| |||
474 | 466 |
| |
475 | 467 |
| |
476 | 468 |
| |
477 |
| - | |
478 |
| - | |
| 469 | + | |
479 | 470 |
| |
480 | 471 |
| |
481 | 472 |
| |
482 |
| - | |
| 473 | + | |
483 | 474 |
| |
484 | 475 |
| |
485 | 476 |
| |
| |||
1139 | 1130 |
| |
1140 | 1131 |
| |
1141 | 1132 |
| |
1142 |
| - | |
| 1133 | + | |
1143 | 1134 |
| |
1144 | 1135 |
| |
1145 | 1136 |
| |
| |||
1192 | 1183 |
| |
1193 | 1184 |
| |
1194 | 1185 |
| |
1195 |
| - | |
1196 | 1186 |
| |
1197 | 1187 |
| |
1198 | 1188 |
| |
| |||
1204 | 1194 |
| |
1205 | 1195 |
| |
1206 | 1196 |
| |
1207 |
| - | |
1208 |
| - | |
1209 | 1197 |
| |
1210 | 1198 |
| |
1211 | 1199 |
| |
| |||
1262 | 1250 |
| |
1263 | 1251 |
| |
1264 | 1252 |
| |
1265 |
| - | |
1266 |
| - | |
1267 | 1253 |
| |
1268 | 1254 |
| |
1269 | 1255 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 |
| - | |
96 |
| - | |
| 95 | + | |
97 | 96 |
| |
98 | 97 |
| |
99 | 98 |
| |
|
0 commit comments
Comments
(0)