forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1b4cc49
committed
Preserve AND/OR flatness while extracting restriction OR clauses.
The code I added in commitf343a88 wascareless about preserving AND/OR flatness: it could create a structure withan OR node directly underneath another one. That breaks an assumptionthat's fairly important for planning efficiency, not to mention triggeringvarious Asserts (as reported by Benjamin Smith). Add a trifle more logicto handle the case properly.1 parent07c8651 commit1b4cc49
File tree
3 files changed
+41
-2
lines changed- src
- backend/optimizer/util
- test/regress
- expected
- sql
3 files changed
+41
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
| 181 | + | |
181 | 182 |
| |
182 | 183 |
| |
183 | 184 |
| |
| |||
226 | 227 |
| |
227 | 228 |
| |
228 | 229 |
| |
229 |
| - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
230 | 233 |
| |
231 |
| - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
232 | 240 |
| |
233 | 241 |
| |
234 | 242 |
| |
|
Lines changed: 27 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2827 | 2827 |
| |
2828 | 2828 |
| |
2829 | 2829 |
| |
| 2830 | + | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
2830 | 2857 |
| |
2831 | 2858 |
| |
2832 | 2859 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
774 | 774 |
| |
775 | 775 |
| |
776 | 776 |
| |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
777 | 781 |
| |
778 | 782 |
| |
779 | 783 |
| |
|
0 commit comments
Comments
(0)