forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit19f9376
committed
Tweak joinlist creation to avoid generating useless one-element subproblems
when collapsing of JOIN trees is stopped by join_collapse_limit. For instancea list of 11 LEFT JOINs with limit 8 now produces something like((1 2 3 4 5 6 7 8) 9 10 11 12)instead of(((1 2 3 4 5 6 7 8) (9)) 10 11 12)The latter structure is really only required for a FULL JOIN.Noted while studying an example from Shane Ambler.1 parent9a9a143 commit19f9376
1 file changed
+27
-6
lines changedLines changed: 27 additions & 6 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 |
| |
| |||
402 | 402 |
| |
403 | 403 |
| |
404 | 404 |
| |
405 |
| - | |
406 |
| - | |
407 |
| - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
408 | 414 |
| |
| 415 | + | |
409 | 416 |
| |
410 |
| - | |
411 |
| - | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
412 | 433 |
| |
413 | 434 |
| |
414 | 435 |
| |
|
0 commit comments
Comments
(0)