- Notifications
You must be signed in to change notification settings - Fork28
Commit5613da4
committed
Optimize nested ConvertRowtypeExpr nodes.
A ConvertRowtypeExpr is used to translate a whole-row reference of achild to that of a parent. The planner produces nestedConvertRowtypeExpr while translating whole-row reference of a leafpartition in a multi-level partition hierarchy. Executor thentranslates the whole-row reference from the leaf partition into allthe intermediate parent's whole-row references before arriving at thefinal whole-row reference. It could instead translate the whole-rowreference from the leaf partition directly to the top-most parent'swhole-row reference skipping any intermediate translations.Ashutosh Bapat, with tests by Kyotaro Horiguchi and someeditorialization by me. Reviewed by Andres Freund, Pavel Stehule,Kyotaro Horiguchi, Dmitry Dolgov, Tom Lane.1 parentc24dcd0 commit5613da4
File tree
3 files changed
+69
-0
lines changed- src
- backend/optimizer/util
- test/regress
- expected
- sql
3 files changed
+69
-0
lines changedLines changed: 46 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3716 | 3716 |
| |
3717 | 3717 |
| |
3718 | 3718 |
| |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
| 3722 | + | |
| 3723 | + | |
| 3724 | + | |
| 3725 | + | |
| 3726 | + | |
| 3727 | + | |
| 3728 | + | |
| 3729 | + | |
| 3730 | + | |
| 3731 | + | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
| 3747 | + | |
| 3748 | + | |
| 3749 | + | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
| 3757 | + | |
| 3758 | + | |
| 3759 | + | |
| 3760 | + | |
| 3761 | + | |
| 3762 | + | |
| 3763 | + | |
| 3764 | + | |
3719 | 3765 |
| |
3720 | 3766 |
| |
3721 | 3767 |
| |
|
Lines changed: 18 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
764 | 764 |
| |
765 | 765 |
| |
766 | 766 |
| |
| 767 | + | |
| 768 | + | |
767 | 769 |
| |
768 | 770 |
| |
769 | 771 |
| |
| |||
777 | 779 |
| |
778 | 780 |
| |
779 | 781 |
| |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
780 | 798 |
| |
781 | 799 |
| |
782 | 800 |
| |
|
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
| 240 | + | |
240 | 241 |
| |
241 | 242 |
| |
242 | 243 |
| |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
243 | 248 |
| |
244 | 249 |
| |
245 | 250 |
| |
|
0 commit comments
Comments
(0)