forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb025f32
committed
Add leader_pid to pg_stat_activity
This new field tracks the PID of the group leader used with parallelquery. For parallel workers and the leader, the value is set to thePID of the group leader. So, for the group leader, the value is thesame as its own PID. Note that this reflects what PGPROC stores inshared memory, so as leader_pid is NULL if a backend has never beeninvolved in parallel query. If the backend is using parallel query orhas used it at least once, the value is set until the backend exits.Author: Julien RouhaudReviewed-by: Sergei Kornilov, Guillaume Lelarge, Michael Paquier, TomasVondraDiscussion:https://postgr.es/m/CAOBaU_Yy5bt0vTPZ2_LUM6cUcGeqmYNoJ8-Rgto+c2+w3defYA@mail.gmail.com1 parentbf6cc19 commitb025f32
File tree
5 files changed
+47
-25
lines changed- doc/src/sgml
- src
- backend
- catalog
- utils/adt
- include/catalog
- test/regress/expected
5 files changed
+47
-25
lines changedLines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
622 | 622 |
| |
623 | 623 |
| |
624 | 624 |
| |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
625 | 637 |
| |
626 | 638 |
| |
627 | 639 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
741 | 741 |
| |
742 | 742 |
| |
743 | 743 |
| |
| 744 | + | |
744 | 745 |
| |
745 | 746 |
| |
746 | 747 |
| |
|
Lines changed: 26 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
547 | 547 |
| |
548 | 548 |
| |
549 | 549 |
| |
550 |
| - | |
| 550 | + | |
551 | 551 |
| |
552 | 552 |
| |
553 | 553 |
| |
| |||
686 | 686 |
| |
687 | 687 |
| |
688 | 688 |
| |
689 |
| - | |
690 |
| - | |
691 |
| - | |
692 |
| - | |
| 689 | + | |
| 690 | + | |
693 | 691 |
| |
694 |
| - | |
695 |
| - | |
696 |
| - | |
| 692 | + | |
697 | 693 |
| |
698 |
| - | |
699 |
| - | |
| 694 | + | |
700 | 695 |
| |
701 | 696 |
| |
702 | 697 |
| |
703 | 698 |
| |
704 | 699 |
| |
705 | 700 |
| |
| 701 | + | |
706 | 702 |
| |
707 |
| - | |
708 |
| - | |
709 |
| - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
710 | 713 |
| |
711 |
| - | |
712 |
| - | |
713 |
| - | |
714 |
| - | |
715 |
| - | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
716 | 723 |
| |
717 | 724 |
| |
718 | 725 |
| |
| |||
908 | 915 |
| |
909 | 916 |
| |
910 | 917 |
| |
| 918 | + | |
911 | 919 |
| |
912 | 920 |
| |
913 | 921 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5175 | 5175 |
| |
5176 | 5176 |
| |
5177 | 5177 |
| |
5178 |
| - | |
5179 |
| - | |
5180 |
| - | |
| 5178 | + | |
| 5179 | + | |
| 5180 | + | |
5181 | 5181 |
| |
5182 | 5182 |
| |
5183 | 5183 |
| |
|
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1730 | 1730 |
| |
1731 | 1731 |
| |
1732 | 1732 |
| |
| 1733 | + | |
1733 | 1734 |
| |
1734 | 1735 |
| |
1735 | 1736 |
| |
| |||
1747 | 1748 |
| |
1748 | 1749 |
| |
1749 | 1750 |
| |
1750 |
| - | |
| 1751 | + | |
1751 | 1752 |
| |
1752 | 1753 |
| |
1753 | 1754 |
| |
| |||
1851 | 1852 |
| |
1852 | 1853 |
| |
1853 | 1854 |
| |
1854 |
| - | |
| 1855 | + | |
1855 | 1856 |
| |
1856 | 1857 |
| |
1857 | 1858 |
| |
| |||
1984 | 1985 |
| |
1985 | 1986 |
| |
1986 | 1987 |
| |
1987 |
| - | |
| 1988 | + | |
1988 | 1989 |
| |
1989 | 1990 |
| |
1990 | 1991 |
| |
| |||
1996 | 1997 |
| |
1997 | 1998 |
| |
1998 | 1999 |
| |
1999 |
| - | |
| 2000 | + | |
2000 | 2001 |
| |
2001 | 2002 |
| |
2002 | 2003 |
| |
|
0 commit comments
Comments
(0)