- Notifications
You must be signed in to change notification settings - Fork5
Commit59fc64a
committed
Fix a conceptual error in my patch of 2007-10-26 that avoided considering
clauseless joins of relations that have unexploited join clauses. Ratherthan looking at every other base relation in the query, the correct thing isto examine the other relations in the "initial_rels" list of the currentmake_rel_from_joinlist() invocation, because those are what we actually havethe ability to join against. This might be a subset of the whole query incases where join_collapse_limit or from_collapse_limit or full joins haveprevented merging the whole query into a single join problem. This is a bituntidy because we have to pass those rels down through a new PlannerInfofield, but it's necessary. Per bug #3865 from Oleg Kharin.1 parente6a442c commit59fc64a
File tree
4 files changed
+26
-24
lines changed- src
- backend/optimizer
- path
- plan
- include/nodes
4 files changed
+26
-24
lines changedLines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
674 | 674 |
| |
675 | 675 |
| |
676 | 676 |
| |
| 677 | + | |
| 678 | + | |
| 679 | + | |
677 | 680 |
| |
| 681 | + | |
| 682 | + | |
678 | 683 |
| |
679 | 684 |
| |
680 | 685 |
| |
|
Lines changed: 15 additions & 21 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
838 | 838 |
| |
839 | 839 |
| |
840 | 840 |
| |
841 |
| - | |
842 |
| - | |
843 |
| - | |
844 |
| - | |
845 |
| - | |
846 |
| - | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
847 | 851 |
| |
848 | 852 |
| |
849 | 853 |
| |
850 | 854 |
| |
851 |
| - | |
| 855 | + | |
852 | 856 |
| |
853 |
| - | |
| 857 | + | |
854 | 858 |
| |
855 |
| - | |
| 859 | + | |
856 | 860 |
| |
857 |
| - | |
858 |
| - | |
859 |
| - | |
860 |
| - | |
861 |
| - | |
862 |
| - | |
863 |
| - | |
864 |
| - | |
865 |
| - | |
866 |
| - | |
867 |
| - | |
| 861 | + | |
868 | 862 |
| |
869 | 863 |
| |
870 | 864 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
| 145 | + | |
145 | 146 |
| |
146 | 147 |
| |
147 | 148 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
| 168 | + | |
| 169 | + | |
168 | 170 |
| |
169 | 171 |
| |
170 | 172 |
| |
|
0 commit comments
Comments
(0)