forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3ef1879
committed
Fix an error in make_outerjoininfo introduced by my patch of 30-Aug: the code
neglected to test whether an outer join's join-condition actually refers tothe lower outer join it is looking at. (The comment correctly described whatwas supposed to happen, but the code didn't do it...) This often resulted inadding an unnecessary constraint on the join order of the two outer joins,which was bad enough. However, it also seems to expose a performanceproblem in an older patch (from 15-Feb): once we've decided that there is ajoin ordering constraint, we will start trying clauseless joins between everycombination of rels within the constraint, which pointlessly eats up lots oftime and space if there are numerous rels below the outer join. That probablyneeds to be revisited :-(. Per gripe from Jakub Ouhrabka.1 parent5c4249c commit3ef1879
1 file changed
+2
-1
lines changedLines changed: 2 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 |
| |
| |||
623 | 623 |
| |
624 | 624 |
| |
625 | 625 |
| |
| 626 | + | |
626 | 627 |
| |
627 | 628 |
| |
628 | 629 |
| |
|
0 commit comments
Comments
(0)