- Notifications
You must be signed in to change notification settings - Fork28
Commitfc70a4b
committed
Show more processes in pg_stat_activity.
Previously, auxiliary processes and background workers not connectedto a database (such as the logical replication launcher) weren'tshown. Include them, so that we can see the associated wait stateinformation. Add a new column to identify the processes type, so thatpeople can filter them out easily using SQL if they wish.Before this patch was written, there was discussion about whether weshould expose this information in a separate view, so as to avoidcontaminating pg_stat_activity with things people might not want tosee. But putting everything in pg_stat_activity was a more popularchoice, so that's what the patch does.Kuntal Ghosh, reviewed by Amit Langote and Michael Paquier. Somerevisions and bug fixes by me.Discussion:http://postgr.es/m/CA+TgmoYES5nhkEGw9nZXU8_FhA8XEm8NTm3-SO+3ML1B81Hkww@mail.gmail.com1 parent2f0903e commitfc70a4b
File tree
14 files changed
+305
-53
lines changed- doc/src/sgml
- src
- backend
- bootstrap
- catalog
- postmaster
- replication
- storage/lmgr
- utils
- adt
- init
- include
- catalog
- storage
- test/regress/expected
14 files changed
+305
-53
lines changedLines changed: 13 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
620 | 620 |
| |
621 | 621 |
| |
622 | 622 |
| |
623 |
| - | |
624 |
| - | |
| 623 | + | |
| 624 | + | |
625 | 625 |
| |
626 | 626 |
| |
627 | 627 |
| |
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
800 | 811 |
| |
801 | 812 |
| |
802 | 813 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
387 | 387 |
| |
388 | 388 |
| |
389 | 389 |
| |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
390 | 394 |
| |
391 | 395 |
| |
392 | 396 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
716 | 716 |
| |
717 | 717 |
| |
718 | 718 |
| |
719 |
| - | |
| 719 | + | |
| 720 | + | |
720 | 721 |
| |
721 | 722 |
| |
722 | 723 |
| |
|
0 commit comments
Comments
(0)