forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit684ffac
committed
Remove unnecessary code in dependency_is_compatible_expression().
Scanning the expression for compatible Vars isn't really necessary,because the subsequent match against StatisticExtInfo entries willeliminate expressions containing other Vars just fine. Moreover,this code hadn't stopped to think about what to do withPlaceHolderVars or Aggrefs in the clause; and at least for the PHVcase, that demonstrably leads to failures. Rather than work outwhether it's reasonable to ignore those, let's just remove thewhole stanza.Per report from Richard Guo. Back-patch to v14 where this codewas added.Discussion:https://postgr.es/m/CAMbWs48Mmvm-acGevXuwpB=g5JMqVSL6i9z5UaJyLGJqa-XPAA@mail.gmail.com1 parentbdc8d80 commit684ffac
1 file changed
+3
-25
lines changedLines changed: 3 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1163 | 1163 |
| |
1164 | 1164 |
| |
1165 | 1165 |
| |
1166 |
| - | |
1167 |
| - | |
| 1166 | + | |
| 1167 | + | |
1168 | 1168 |
| |
1169 | 1169 |
| |
1170 | 1170 |
| |
1171 | 1171 |
| |
1172 |
| - | |
1173 | 1172 |
| |
1174 | 1173 |
| |
1175 | 1174 |
| |
| |||
1316 | 1315 |
| |
1317 | 1316 |
| |
1318 | 1317 |
| |
1319 |
| - | |
1320 |
| - | |
1321 |
| - | |
1322 |
| - | |
1323 |
| - | |
1324 |
| - | |
1325 |
| - | |
1326 |
| - | |
1327 |
| - | |
1328 |
| - | |
1329 |
| - | |
1330 |
| - | |
1331 |
| - | |
1332 |
| - | |
1333 |
| - | |
1334 |
| - | |
1335 |
| - | |
1336 |
| - | |
1337 |
| - | |
1338 | 1318 |
| |
1339 |
| - | |
1340 |
| - | |
1341 |
| - | |
| 1319 | + | |
1342 | 1320 |
| |
1343 | 1321 |
| |
1344 | 1322 |
| |
|
0 commit comments
Comments
(0)