forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6c59886
committed
Second try at fixing join alias variables. Instead of attaching miscellaneous
lists to join RTEs, attach a list of Vars and COALESCE expressions that willreplace the join's alias variables during planning. This simplifiesflatten_join_alias_vars while still making it easy to fix up varno referenceswhen transforming the query tree. Add regression test cases for interactionsof subqueries with outer joins.1 parentc8996f9 commit6c59886
File tree
21 files changed
+622
-651
lines changed- src
- backend
- nodes
- optimizer
- plan
- util
- parser
- include
- catalog
- nodes
- optimizer
- parser
- test/regress
- expected
- sql
21 files changed
+622
-651
lines changedLines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| |||
323 | 323 |
| |
324 | 324 |
| |
325 | 325 |
| |
326 |
| - | |
327 | 326 |
| |
328 | 327 |
| |
329 | 328 |
| |
| |||
1475 | 1474 |
| |
1476 | 1475 |
| |
1477 | 1476 |
| |
1478 |
| - | |
1479 |
| - | |
1480 |
| - | |
1481 |
| - | |
| 1477 | + | |
1482 | 1478 |
| |
1483 | 1479 |
| |
1484 | 1480 |
| |
|
Lines changed: 2 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
| 23 | + | |
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| |||
1680 | 1680 |
| |
1681 | 1681 |
| |
1682 | 1682 |
| |
1683 |
| - | |
1684 |
| - | |
1685 |
| - | |
1686 |
| - | |
1687 |
| - | |
1688 |
| - | |
1689 |
| - | |
| 1683 | + | |
1690 | 1684 |
| |
1691 | 1685 |
| |
1692 | 1686 |
| |
|
Lines changed: 4 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
408 | 408 |
| |
409 | 409 |
| |
410 | 410 |
| |
411 |
| - | |
412 |
| - | |
413 | 411 |
| |
414 | 412 |
| |
415 | 413 |
| |
| |||
423 | 421 |
| |
424 | 422 |
| |
425 | 423 |
| |
426 |
| - | |
427 |
| - | |
428 | 424 |
| |
429 | 425 |
| |
430 | 426 |
| |
| |||
438 | 434 |
| |
439 | 435 |
| |
440 | 436 |
| |
441 |
| - | |
442 |
| - | |
443 | 437 |
| |
444 | 438 |
| |
445 | 439 |
| |
| |||
456 | 450 |
| |
457 | 451 |
| |
458 | 452 |
| |
459 |
| - | |
460 |
| - | |
461 | 453 |
| |
462 | 454 |
| |
463 | 455 |
| |
| |||
982 | 974 |
| |
983 | 975 |
| |
984 | 976 |
| |
985 |
| - | |
| 977 | + | |
986 | 978 |
| |
987 | 979 |
| |
988 | 980 |
| |
989 | 981 |
| |
990 | 982 |
| |
991 | 983 |
| |
992 |
| - | |
| 984 | + | |
993 | 985 |
| |
994 |
| - | |
995 |
| - | |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
| 986 | + | |
1001 | 987 |
| |
1002 | 988 |
| |
1003 | 989 |
| |
|
Lines changed: 3 additions & 16 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 |
| |
| |||
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
424 |
| - | |
425 |
| - | |
426 |
| - | |
427 |
| - | |
428 | 424 |
| |
429 | 425 |
| |
430 | 426 |
| |
| |||
1523 | 1519 |
| |
1524 | 1520 |
| |
1525 | 1521 |
| |
1526 |
| - | |
1527 |
| - | |
1528 |
| - | |
1529 |
| - | |
1530 |
| - | |
1531 |
| - | |
1532 |
| - | |
1533 |
| - | |
1534 |
| - | |
1535 |
| - | |
1536 |
| - | |
| 1522 | + | |
| 1523 | + | |
1537 | 1524 |
| |
1538 | 1525 |
| |
1539 | 1526 |
| |
|
0 commit comments
Comments
(0)