forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit896db77
committed
pg_stat_activity: show NULL stmt start time for walsenders
Returning a non-NULL time is pointless, sinc a walsender is not aprocess that would be running normal transactions anyway, but the codewas unintentionally exposing the process start time intermittently,which was not only bogus but it also confused monitoring systems lookingfor idle transactions. Fix by avoiding all updates in walsenders.Backpatch to 11, where walsenders started appearing in pg_stat_activity.Reported-by: Tomas VondraDiscussion:https://postgr.es/m/20191209234409.exe7osmyalwkt5j4@development1 parent7474393 commit896db77
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
750 | 750 |
| |
751 | 751 |
| |
752 | 752 |
| |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
753 | 760 |
| |
754 | 761 |
| |
755 | 762 |
| |
|
0 commit comments
Comments
(0)