forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1832cef
committed
Fix pgstat_report_waiting() to not dump core if called before
pgstat_bestart() has been called; else any lock-block occurringduring InitPostgres() is disastrous. I believe this explainsrecent wasp regression failure; at least it explains the crash Igot while trying to duplicate the problem. I also madepgstat_report_activity() safe against the same scenario, justin case. The report_waiting hazard was created by my patch of19-Aug to include waiting status in pg_stat_activity.1 parentae28cfe commit1832cef
1 file changed
+9
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
1384 | 1384 | | |
1385 | 1385 | | |
1386 | 1386 | | |
1387 | | - | |
| 1387 | + | |
1388 | 1388 | | |
1389 | 1389 | | |
1390 | 1390 | | |
| |||
1393 | 1393 | | |
1394 | 1394 | | |
1395 | 1395 | | |
1396 | | - | |
1397 | 1396 | | |
1398 | 1397 | | |
1399 | 1398 | | |
| |||
1413 | 1412 | | |
1414 | 1413 | | |
1415 | 1414 | | |
1416 | | - | |
| 1415 | + | |
1417 | 1416 | | |
1418 | 1417 | | |
1419 | 1418 | | |
1420 | | - | |
| 1419 | + | |
1421 | 1420 | | |
1422 | 1421 | | |
1423 | 1422 | | |
| |||
1434 | 1433 | | |
1435 | 1434 | | |
1436 | 1435 | | |
1437 | | - | |
1438 | 1436 | | |
1439 | 1437 | | |
1440 | 1438 | | |
| |||
1450 | 1448 | | |
1451 | 1449 | | |
1452 | 1450 | | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1453 | 1454 | | |
1454 | 1455 | | |
1455 | 1456 | | |
1456 | 1457 | | |
1457 | 1458 | | |
1458 | | - | |
| 1459 | + | |
1459 | 1460 | | |
1460 | | - | |
| 1461 | + | |
1461 | 1462 | | |
1462 | 1463 | | |
1463 | 1464 | | |
1464 | 1465 | | |
1465 | 1466 | | |
1466 | 1467 | | |
1467 | 1468 | | |
1468 | | - | |
1469 | | - | |
1470 | 1469 | | |
1471 | 1470 | | |
1472 | 1471 | | |
| |||
0 commit comments
Comments
(0)