forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita0c2492
committed
Avoid updating our PgBackendStatus entry when track_activities is off.
The point of turning off track_activities is to avoid this reportingoverhead, but a thinko in commit4f42b54caused pgstat_report_activity() to perform half of its updates anyway.Fix that, and also make sure that we clear all the now-disabled fieldswhen transitioning to the non-reporting state.1 parente084b14 commita0c2492
2 files changed
+25
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2520 | 2520 | | |
2521 | 2521 | | |
2522 | 2522 | | |
2523 | | - | |
| 2523 | + | |
2524 | 2524 | | |
2525 | 2525 | | |
2526 | 2526 | | |
| |||
2540 | 2540 | | |
2541 | 2541 | | |
2542 | 2542 | | |
2543 | | - | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
2547 | | - | |
2548 | | - | |
2549 | | - | |
| 2543 | + | |
2550 | 2544 | | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | | - | |
2559 | | - | |
2560 | | - | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
2561 | 2563 | | |
2562 | 2564 | | |
2563 | 2565 | | |
2564 | 2566 | | |
2565 | | - | |
| 2567 | + | |
| 2568 | + | |
2566 | 2569 | | |
2567 | 2570 | | |
2568 | 2571 | | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
2572 | 2575 | | |
| 2576 | + | |
2573 | 2577 | | |
2574 | 2578 | | |
2575 | 2579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
668 | | - | |
669 | | - | |
670 | | - | |
671 | | - | |
672 | | - | |
673 | | - | |
674 | | - | |
675 | | - | |
676 | | - | |
| 668 | + | |
| 669 | + | |
677 | 670 | | |
678 | 671 | | |
679 | 672 | | |
| |||
0 commit comments
Comments
(0)