Commit f90e80b
committed
Reproduce debug_query_string==NULL on parallel workers.
Certain background workers initiate parallel queries while
debug_query_string==NULL, at which point they attempted strlen(NULL) and
died to SIGSEGV. Older debug_query_string observers allow NULL, so do
likewise in these newer ones. Back-patch to v11, where commit
7de4a1b introduced the first of these.
Discussion: https://postgr.es/m/20201014022636.GA1962668@rfd.leadboat.com1 parent 970c050 commit f90e80b
2 files changed
+36
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3237 | 3237 | | |
3238 | 3238 | | |
3239 | 3239 | | |
3240 | | - | |
3241 | 3240 | | |
3242 | 3241 | | |
3243 | 3242 | | |
| |||
3334 | 3333 | | |
3335 | 3334 | | |
3336 | 3335 | | |
3337 | | - | |
3338 | | - | |
3339 | | - | |
| 3336 | + | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
3340 | 3344 | | |
3341 | 3345 | | |
3342 | 3346 | | |
| |||
3381 | 3385 | | |
3382 | 3386 | | |
3383 | 3387 | | |
3384 | | - | |
3385 | | - | |
3386 | | - | |
3387 | | - | |
| 3388 | + | |
| 3389 | + | |
| 3390 | + | |
| 3391 | + | |
| 3392 | + | |
| 3393 | + | |
| 3394 | + | |
| 3395 | + | |
| 3396 | + | |
| 3397 | + | |
3388 | 3398 | | |
3389 | 3399 | | |
3390 | 3400 | | |
| |||
3527 | 3537 | | |
3528 | 3538 | | |
3529 | 3539 | | |
3530 | | - | |
| 3540 | + | |
3531 | 3541 | | |
3532 | 3542 | | |
3533 | 3543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1466 | 1466 | | |
1467 | 1467 | | |
1468 | 1468 | | |
1469 | | - | |
1470 | 1469 | | |
1471 | 1470 | | |
1472 | 1471 | | |
| |||
1533 | 1532 | | |
1534 | 1533 | | |
1535 | 1534 | | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1539 | 1543 | | |
1540 | 1544 | | |
1541 | 1545 | | |
| |||
1599 | 1603 | | |
1600 | 1604 | | |
1601 | 1605 | | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
1605 | 1614 | | |
1606 | 1615 | | |
1607 | 1616 | | |
| |||
1806 | 1815 | | |
1807 | 1816 | | |
1808 | 1817 | | |
1809 | | - | |
| 1818 | + | |
1810 | 1819 | | |
1811 | 1820 | | |
1812 | 1821 | | |
| |||
0 commit comments