forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5a1e6df
committed
Show Parallel Bitmap Heap Scan worker stats in EXPLAIN ANALYZE
Nodes like Memoize report the cache stats for each parallel worker, so itmakes sense to show the exact and lossy pages in Parallel Bitmap Heap Scanin a similar way. Likewise, Sort shows the method and memory used foreach worker.There was some discussion on whether the leader stats should include thetotals for each parallel worker or not. I did some analysis on this tosee what other parallel node types do and it seems only Parallel Hash doesanything like this. All the rest, per what's supported byExecParallelRetrieveInstrumentation() are consistent with each other.Author: David Geier <geidav.pg@gmail.com>Author: Heikki Linnakangas <hlinnaka@iki.fi>Author: Donghang Lin <donghanglin@gmail.com>Author: Alena Rybakina <lena.ribackina@yandex.ru>Author: David Rowley <dgrowleyml@gmail.com>Reviewed-by: Dmitry Dolgov <9erthalion6@gmail.com>Reviewed-by: Michael Christofides <michael@pgmustard.com>Reviewed-by: Robert Haas <robertmhaas@gmail.com>Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com>Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>Reviewed-by: Donghang Lin <donghanglin@gmail.com>Reviewed-by: Masahiro Ikeda <Masahiro.Ikeda@nttdata.com>Discussion:https://postgr.es/m/b3d80961-c2e5-38cc-6a32-61886cdf766d%40gmail.com1 parente41f713 commit5a1e6df
File tree
6 files changed
+181
-23
lines changed- src
- backend
- commands
- executor
- include
- executor
- nodes
- tools/pgindent
6 files changed
+181
-23
lines changedLines changed: 48 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2010 | 2010 |
| |
2011 | 2011 |
| |
2012 | 2012 |
| |
2013 |
| - | |
2014 |
| - | |
| 2013 | + | |
2015 | 2014 |
| |
2016 | 2015 |
| |
2017 | 2016 |
| |
| |||
3628 | 3627 |
| |
3629 | 3628 |
| |
3630 | 3629 |
| |
3631 |
| - | |
| 3630 | + | |
3632 | 3631 |
| |
3633 | 3632 |
| |
3634 | 3633 |
| |
3635 | 3634 |
| |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
3636 | 3638 |
| |
3637 | 3639 |
| |
3638 | 3640 |
| |
3639 |
| - | |
| 3641 | + | |
3640 | 3642 |
| |
3641 |
| - | |
| 3643 | + | |
3642 | 3644 |
| |
3643 | 3645 |
| |
3644 | 3646 |
| |
3645 |
| - | |
| 3647 | + | |
3646 | 3648 |
| |
3647 | 3649 |
| |
3648 | 3650 |
| |
3649 |
| - | |
3650 |
| - | |
3651 |
| - | |
3652 |
| - | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3653 | 3655 |
| |
3654 | 3656 |
| |
3655 | 3657 |
| |
| 3658 | + | |
| 3659 | + | |
| 3660 | + | |
| 3661 | + | |
| 3662 | + | |
| 3663 | + | |
| 3664 | + | |
| 3665 | + | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
| 3675 | + | |
| 3676 | + | |
| 3677 | + | |
| 3678 | + | |
| 3679 | + | |
| 3680 | + | |
| 3681 | + | |
| 3682 | + | |
| 3683 | + | |
| 3684 | + | |
| 3685 | + | |
| 3686 | + | |
| 3687 | + | |
| 3688 | + | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
3656 | 3694 |
| |
3657 | 3695 |
| |
3658 | 3696 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1076 | 1076 |
| |
1077 | 1077 |
| |
1078 | 1078 |
| |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1079 | 1082 |
| |
1080 | 1083 |
| |
1081 | 1084 |
| |
|
Lines changed: 96 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
236 | 236 |
| |
237 | 237 |
| |
238 | 238 |
| |
239 |
| - | |
| 239 | + | |
240 | 240 |
| |
241 |
| - | |
| 241 | + | |
242 | 242 |
| |
243 | 243 |
| |
244 | 244 |
| |
| |||
627 | 627 |
| |
628 | 628 |
| |
629 | 629 |
| |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
630 | 653 |
| |
631 | 654 |
| |
632 | 655 |
| |
| |||
694 | 717 |
| |
695 | 718 |
| |
696 | 719 |
| |
697 |
| - | |
698 |
| - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
699 | 724 |
| |
700 | 725 |
| |
701 | 726 |
| |
| |||
803 | 828 |
| |
804 | 829 |
| |
805 | 830 |
| |
806 |
| - | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
807 | 843 |
| |
808 | 844 |
| |
809 | 845 |
| |
| |||
818 | 854 |
| |
819 | 855 |
| |
820 | 856 |
| |
| 857 | + | |
821 | 858 |
| |
| 859 | + | |
| 860 | + | |
822 | 861 |
| |
823 | 862 |
| |
824 | 863 |
| |
825 | 864 |
| |
826 | 865 |
| |
827 |
| - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
828 | 878 |
| |
829 | 879 |
| |
830 | 880 |
| |
| |||
837 | 887 |
| |
838 | 888 |
| |
839 | 889 |
| |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
840 | 899 |
| |
841 | 900 |
| |
| 901 | + | |
842 | 902 |
| |
843 | 903 |
| |
844 | 904 |
| |
| |||
880 | 940 |
| |
881 | 941 |
| |
882 | 942 |
| |
883 |
| - | |
| 943 | + | |
884 | 944 |
| |
885 | 945 |
| |
886 | 946 |
| |
887 |
| - | |
888 |
| - | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
889 | 976 |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
31 | 32 |
| |
32 | 33 |
|
Lines changed: 31 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1746 | 1746 |
| |
1747 | 1747 |
| |
1748 | 1748 |
| |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
1749 | 1762 |
| |
1750 | 1763 |
| |
1751 | 1764 |
| |
| |||
1789 | 1802 |
| |
1790 | 1803 |
| |
1791 | 1804 |
| |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1792 | 1819 |
| |
1793 | 1820 |
| |
1794 | 1821 |
| |
| |||
1797 | 1824 |
| |
1798 | 1825 |
| |
1799 | 1826 |
| |
1800 |
| - | |
1801 |
| - | |
| 1827 | + | |
1802 | 1828 |
| |
1803 | 1829 |
| |
1804 | 1830 |
| |
| |||
1807 | 1833 |
| |
1808 | 1834 |
| |
1809 | 1835 |
| |
| 1836 | + | |
1810 | 1837 |
| |
1811 | 1838 |
| |
1812 | 1839 |
| |
| |||
1817 | 1844 |
| |
1818 | 1845 |
| |
1819 | 1846 |
| |
1820 |
| - | |
1821 |
| - | |
| 1847 | + | |
1822 | 1848 |
| |
1823 | 1849 |
| |
1824 | 1850 |
| |
| |||
1827 | 1853 |
| |
1828 | 1854 |
| |
1829 | 1855 |
| |
| 1856 | + | |
1830 | 1857 |
| |
1831 | 1858 |
| |
1832 | 1859 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
262 | 262 |
| |
263 | 263 |
| |
264 | 264 |
| |
| 265 | + | |
265 | 266 |
| |
266 | 267 |
| |
267 | 268 |
| |
| |||
2603 | 2604 |
| |
2604 | 2605 |
| |
2605 | 2606 |
| |
| 2607 | + | |
2606 | 2608 |
| |
2607 | 2609 |
| |
2608 | 2610 |
| |
|
0 commit comments
Comments
(0)