forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6190d82
committed
Do not translate dummy SpecialJoinInfos for child joins
This teaches build_child_join_sjinfo() to create the dummySpecialJoinInfos (those created for inner joins) directly for a givenchild join, skipping the unnecessary overhead of translating theparent joinrel's SpecialJoinInfo.To that end, this commit moves the code to initialize the dummySpecialJoinInfos to a new function named init_dummy_sjinfo() andchanges the few existing sites that have this code andbuild_child_join_sjinfo() to call this new function.Author: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>Reviewed-by: Richard Guo <guofenglinux@gmail.com>Reviewed-by: Amit Langote <amitlangote09@gmail.com>Reviewed-by: Andrey Lepikhov <a.lepikhov@postgrespro.ru>Reviewed-by: Tomas Vondra <tomas.vondra@enterprisedb.com>Discussion:https://postgr.es/m/CAExHW5tHqEf3ASVqvFFcghYGPfpy7o3xnvhHwBGbJFMRH8KjNw@mail.gmail.com1 parent5278d0a commit6190d82
File tree
3 files changed
+46
-51
lines changed- src
- backend/optimizer/path
- include/optimizer
3 files changed
+46
-51
lines changedLines changed: 3 additions & 34 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5050 | 5050 |
| |
5051 | 5051 |
| |
5052 | 5052 |
| |
5053 |
| - | |
5054 |
| - | |
5055 |
| - | |
5056 |
| - | |
5057 |
| - | |
5058 |
| - | |
5059 |
| - | |
5060 |
| - | |
5061 |
| - | |
5062 |
| - | |
5063 |
| - | |
5064 |
| - | |
5065 |
| - | |
5066 |
| - | |
5067 |
| - | |
5068 |
| - | |
5069 |
| - | |
| 5053 | + | |
5070 | 5054 |
| |
5071 | 5055 |
| |
5072 | 5056 |
| |
| |||
5219 | 5203 |
| |
5220 | 5204 |
| |
5221 | 5205 |
| |
5222 |
| - | |
5223 |
| - | |
5224 |
| - | |
5225 |
| - | |
5226 |
| - | |
5227 |
| - | |
5228 |
| - | |
5229 |
| - | |
5230 |
| - | |
5231 |
| - | |
5232 |
| - | |
5233 |
| - | |
5234 |
| - | |
5235 |
| - | |
5236 |
| - | |
5237 |
| - | |
5238 |
| - | |
| 5206 | + | |
| 5207 | + | |
5239 | 5208 |
| |
5240 | 5209 |
| |
5241 | 5210 |
| |
|
Lines changed: 41 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
654 | 654 |
| |
655 | 655 |
| |
656 | 656 |
| |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
657 | 689 |
| |
658 | 690 |
| |
659 | 691 |
| |
| |||
717 | 749 |
| |
718 | 750 |
| |
719 | 751 |
| |
720 |
| - | |
721 |
| - | |
722 |
| - | |
723 |
| - | |
724 |
| - | |
725 |
| - | |
726 |
| - | |
727 |
| - | |
728 |
| - | |
729 |
| - | |
730 |
| - | |
731 |
| - | |
732 |
| - | |
733 |
| - | |
734 |
| - | |
735 |
| - | |
736 |
| - | |
| 752 | + | |
737 | 753 |
| |
738 | 754 |
| |
739 | 755 |
| |
| |||
1682 | 1698 |
| |
1683 | 1699 |
| |
1684 | 1700 |
| |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1685 | 1709 |
| |
1686 | 1710 |
| |
1687 | 1711 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
| 115 | + | |
| 116 | + | |
115 | 117 |
| |
116 | 118 |
| |
117 | 119 |
| |
|
0 commit comments
Comments
(0)