forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfdaf783
Rethink nullingrel marking rules in build_joinrel_tlist().
The logic for when to add the current outer join's own relidto the nullingrels sets of output Vars and PHVs was overlycomplicated and underly correct. Not sure why I didn't thinkof this before, but since what we want is marking per thesyntactic structure, we can just consult our records aboutthe syntactic structure, ie syn_righthand/syn_lefthand.Also, tighten the rule about when to add the commute_above_rbits, in hopes of eliminating some squishy reasoning. I do notknow of a reason to think that that's broken as-is, but this wayseems better.Per bug #17781 from Robins Tharakan.Discussion:https://postgr.es/m/17781-c0405c8b3cd5e072@postgresql.org1 parent1fc4c89 commitfdaf783
3 files changed
+96
-19
lines changedLines changed: 24 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1043 | 1043 |
| |
1044 | 1044 |
| |
1045 | 1045 |
| |
1046 |
| - | |
1047 |
| - | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1048 | 1057 |
| |
1049 | 1058 |
| |
1050 | 1059 |
| |
1051 | 1060 |
| |
1052 |
| - | |
1053 |
| - | |
1054 |
| - | |
1055 |
| - | |
1056 |
| - | |
1057 |
| - | |
1058 |
| - | |
1059 |
| - | |
1060 |
| - | |
1061 |
| - | |
1062 |
| - | |
| 1061 | + | |
| 1062 | + | |
1063 | 1063 |
| |
1064 | 1064 |
| |
1065 | 1065 |
| |
| |||
1095 | 1095 |
| |
1096 | 1096 |
| |
1097 | 1097 |
| |
1098 |
| - | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1099 | 1101 |
| |
1100 | 1102 |
| |
1101 |
| - | |
| 1103 | + | |
1102 | 1104 |
| |
1103 | 1105 |
| |
1104 | 1106 |
| |
| |||
1149 | 1151 |
| |
1150 | 1152 |
| |
1151 | 1153 |
| |
1152 |
| - | |
| 1154 | + | |
| 1155 | + | |
1153 | 1156 |
| |
1154 |
| - | |
| 1157 | + | |
1155 | 1158 |
| |
1156 | 1159 |
| |
1157 | 1160 |
| |
1158 | 1161 |
| |
1159 |
| - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1160 | 1165 |
| |
1161 | 1166 |
| |
1162 |
| - | |
| 1167 | + | |
1163 | 1168 |
| |
1164 | 1169 |
| |
1165 | 1170 |
| |
|
Lines changed: 44 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5008 | 5008 |
| |
5009 | 5009 |
| |
5010 | 5010 |
| |
| 5011 | + | |
| 5012 | + | |
| 5013 | + | |
| 5014 | + | |
| 5015 | + | |
| 5016 | + | |
| 5017 | + | |
| 5018 | + | |
| 5019 | + | |
| 5020 | + | |
| 5021 | + | |
| 5022 | + | |
| 5023 | + | |
| 5024 | + | |
| 5025 | + | |
| 5026 | + | |
| 5027 | + | |
| 5028 | + | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
| 5036 | + | |
| 5037 | + | |
| 5038 | + | |
| 5039 | + | |
| 5040 | + | |
| 5041 | + | |
| 5042 | + | |
| 5043 | + | |
| 5044 | + | |
| 5045 | + | |
| 5046 | + | |
| 5047 | + | |
| 5048 | + | |
| 5049 | + | |
| 5050 | + | |
| 5051 | + | |
| 5052 | + | |
| 5053 | + | |
| 5054 | + | |
5011 | 5055 |
| |
5012 | 5056 |
| |
5013 | 5057 |
| |
|
Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1785 | 1785 |
| |
1786 | 1786 |
| |
1787 | 1787 |
| |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
| 1806 | + | |
| 1807 | + | |
| 1808 | + | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
1788 | 1816 |
| |
1789 | 1817 |
| |
1790 | 1818 |
| |
|
0 commit comments
Comments
(0)