- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit1cf269c
committed
Fix "cannot handle unplanned sub-select" error that can occur when a
sub-select contains a join alias reference that expands into an expressioncontaining another sub-select. Per yesterday's report from Merlin Moncureand subsequent off-list investigation.Back-patch to 7.4. Older versions didn't attempt to flatten sub-selects inways that would trigger this problem.1 parent97f29c8 commit1cf269c
File tree
3 files changed
+54
-2
lines changed- src
- backend/optimizer/util
- test/regress
- expected
- sql
3 files changed
+54
-2
lines changedLines changed: 28 additions & 2 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 |
| |
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
| 55 | + | |
54 | 56 |
| |
55 | 57 |
| |
56 | 58 |
| |
| |||
488 | 490 |
| |
489 | 491 |
| |
490 | 492 |
| |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
491 | 501 |
| |
492 | 502 |
| |
493 | 503 |
| |
| |||
498 | 508 |
| |
499 | 509 |
| |
500 | 510 |
| |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
501 | 515 |
| |
502 | 516 |
| |
503 | 517 |
| |
| |||
533 | 547 |
| |
534 | 548 |
| |
535 | 549 |
| |
| 550 | + | |
536 | 551 |
| |
537 |
| - | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
538 | 559 |
| |
539 | 560 |
| |
540 | 561 |
| |
| |||
559 | 580 |
| |
560 | 581 |
| |
561 | 582 |
| |
| 583 | + | |
562 | 584 |
| |
563 | 585 |
| |
| 586 | + | |
| 587 | + | |
564 | 588 |
| |
565 | 589 |
| |
566 | 590 |
| |
567 | 591 |
| |
| 592 | + | |
| 593 | + | |
568 | 594 |
| |
569 | 595 |
| |
570 | 596 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + |
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + |
0 commit comments
Comments
(0)