forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitff49961
committed
Several fixes for EXPLAIN (FORMAT YAML), plus one for EXPLAIN (FORMAT JSON).
ExplainSeparatePlans() was busted for both JSON and YAML output - the presentcode is a holdover from the original version of my machine-readable explainpatch, which didn't have the grouping_stack machinery. Also, fix an odddistribution of labor between ExplainBeginGroup() and ExplainYAMLLineStarting()when marking lists with "- ", with each providing one character. This brokethe output format for multi-query statements. Also, fix ExplainDummyGroup()for the YAML output format.Along the way, make the YAML format use escape_yaml() in situations where theJSON format uses escape_json(). Right now, it doesn't matter because all thevalues are known not to need escaping, but it seems safer this way. Finally,I added some comments to better explain what the YAML output format is doing.Greg Sabino Mullane reported the issues with multi-query statements.Analysis and remaining cleanups by me.1 parent3dfe7e8 commitff49961
1 file changed
+31
-17
lines changedLines changed: 31 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
1694 | 1694 |
| |
1695 | 1695 |
| |
1696 | 1696 |
| |
1697 |
| - | |
1698 |
| - | |
1699 |
| - | |
1700 |
| - | |
| 1697 | + | |
1701 | 1698 |
| |
1702 | 1699 |
| |
1703 | 1700 |
| |
| |||
1785 | 1782 |
| |
1786 | 1783 |
| |
1787 | 1784 |
| |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
1788 | 1792 |
| |
1789 | 1793 |
| |
1790 | 1794 |
| |
1791 |
| - | |
| 1795 | + | |
| 1796 | + | |
1792 | 1797 |
| |
1793 | 1798 |
| |
1794 | 1799 |
| |
1795 | 1800 |
| |
1796 |
| - | |
| 1801 | + | |
1797 | 1802 |
| |
1798 | 1803 |
| |
1799 | 1804 |
| |
| |||
1868 | 1873 |
| |
1869 | 1874 |
| |
1870 | 1875 |
| |
1871 |
| - | |
1872 |
| - | |
| 1876 | + | |
| 1877 | + | |
| 1878 | + | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
| 1883 | + | |
| 1884 | + | |
1873 | 1885 |
| |
1874 | 1886 |
| |
1875 | 1887 |
| |
| |||
1946 | 1958 |
| |
1947 | 1959 |
| |
1948 | 1960 |
| |
1949 |
| - | |
1950 | 1961 |
| |
1951 | 1962 |
| |
1952 | 1963 |
| |
1953 | 1964 |
| |
1954 | 1965 |
| |
1955 |
| - | |
1956 |
| - | |
1957 |
| - | |
1958 | 1966 |
| |
1959 |
| - | |
1960 |
| - | |
| 1967 | + | |
| 1968 | + | |
1961 | 1969 |
| |
1962 | 1970 |
| |
1963 | 1971 |
| |
| |||
2011 | 2019 |
| |
2012 | 2020 |
| |
2013 | 2021 |
| |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
2014 | 2028 |
| |
2015 | 2029 |
| |
2016 | 2030 |
| |
2017 | 2031 |
| |
2018 | 2032 |
| |
2019 | 2033 |
| |
2020 | 2034 |
| |
2021 |
| - | |
2022 | 2035 |
| |
2023 | 2036 |
| |
2024 | 2037 |
| |
| |||
2074 | 2087 |
| |
2075 | 2088 |
| |
2076 | 2089 |
| |
2077 |
| - | |
| 2090 | + | |
| 2091 | + | |
2078 | 2092 |
| |
2079 | 2093 |
| |
2080 | 2094 |
| |
|
0 commit comments
Comments
(0)