- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit0ea5eee
Richard Guo
Avoid creating duplicate ordered append paths
In generate_orderedappend_paths(), the function does not handle thecase where the paths in total_subpaths and fractional_subpaths areidentical. This situation is not uncommon, and as a result, it maygenerate two exactly identical ordered append paths.Fix by checking whether total_subpaths and fractional_subpaths containthe same paths, and skipping creation of the ordered append path forthe fractional case when they are identical.Given the lack of field complaints about this, I'm a bit hesitant toback-patch, but let's clean it up in HEAD.Author: Richard Guo <guofenglinux@gmail.com>Reviewed-by: Andrei Lepikhov <lepihov@gmail.com>Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>Discussion:https://postgr.es/m/CAMbWs4-OYsgA75tGGiBARt87G0y_z_GBTSLrzudcJxAzndYkYw@mail.gmail.com1 parentc1777f2 commit0ea5eee
1 file changed
+12
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1877 | 1877 | | |
1878 | 1878 | | |
1879 | 1879 | | |
| 1880 | + | |
1880 | 1881 | | |
1881 | 1882 | | |
1882 | 1883 | | |
| |||
2005 | 2006 | | |
2006 | 2007 | | |
2007 | 2008 | | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
2008 | 2013 | | |
2009 | | - | |
| 2014 | + | |
2010 | 2015 | | |
| 2016 | + | |
| 2017 | + | |
2011 | 2018 | | |
2012 | 2019 | | |
2013 | 2020 | | |
2014 | 2021 | | |
2015 | | - | |
2016 | | - | |
| 2022 | + | |
| 2023 | + | |
2017 | 2024 | | |
2018 | 2025 | | |
2019 | 2026 | | |
| |||
2084 | 2091 | | |
2085 | 2092 | | |
2086 | 2093 | | |
2087 | | - | |
| 2094 | + | |
2088 | 2095 | | |
2089 | 2096 | | |
2090 | 2097 | | |
| |||
2110 | 2117 | | |
2111 | 2118 | | |
2112 | 2119 | | |
2113 | | - | |
| 2120 | + | |
2114 | 2121 | | |
2115 | 2122 | | |
2116 | 2123 | | |
| |||
0 commit comments
Comments
(0)