- Notifications
You must be signed in to change notification settings - Fork5k
Commit2260c7f
committed
Fixes for ChangeVarNodes_walker()
This commit fixes two bug in ChangeVarNodes_walker() function. * When considering RestrictInfo, walk down to its clauses based on the presense of relid to be deleted not just in clause_relids but also in required_relids. * Incrementally adjust num_base_rels based on the change of clause_relids instead of recalculating it using clause_relids, which could contain outer-join relids.Reported-by: Richard Guo <guofenglinux@gmail.com>Discussion:https://postgr.es/m/CAMbWs49PE3CvnV8vrQ0Dr%3DHqgZZmX0tdNbzVNJxqc8yg-8kDQQ%40mail.gmail.comAuthor: Andrei Lepikhov <lepihov@gmail.com>Reviewed-by: Alexander Korotkov <aekorotkov@gmail.com>1 parent15b1b4d commit2260c7f
File tree
3 files changed
+46
-6
lines changed- src
- backend/rewrite
- test/regress
- expected
- sql
3 files changed
+46
-6
lines changedLines changed: 24 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
644 | 644 |
| |
645 | 645 |
| |
646 | 646 |
| |
647 |
| - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
648 | 655 |
| |
| 656 | + | |
| 657 | + | |
649 | 658 |
| |
650 | 659 |
| |
651 | 660 |
| |
652 |
| - | |
653 |
| - | |
654 |
| - | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
655 | 675 |
| |
656 | 676 |
| |
657 | 677 |
| |
|
Lines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7260 | 7260 |
| |
7261 | 7261 |
| |
7262 | 7262 |
| |
7263 |
| - | |
| 7263 | + | |
| 7264 | + | |
| 7265 | + | |
| 7266 | + | |
| 7267 | + | |
| 7268 | + | |
| 7269 | + | |
| 7270 | + | |
| 7271 | + | |
| 7272 | + | |
| 7273 | + | |
| 7274 | + | |
| 7275 | + | |
| 7276 | + | |
| 7277 | + | |
7264 | 7278 |
| |
7265 | 7279 |
| |
7266 | 7280 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2807 | 2807 |
| |
2808 | 2808 |
| |
2809 | 2809 |
| |
2810 |
| - | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
| 2815 | + | |
| 2816 | + | |
2811 | 2817 |
| |
2812 | 2818 |
| |
2813 | 2819 |
| |
|
0 commit comments
Comments
(0)