- Notifications
You must be signed in to change notification settings - Fork28
Commitedbcbe2

Etsuro Fujita
postgres_fdw: Fix cost estimation for aggregate pushdown.
In commit7012b13, which added support for aggregate pushdown inpostgres_fdw, the expense of evaluating the final scan/join targetcomputed by make_group_input_target() was not accounted for at all incosting aggregate pushdown paths with local statistics. The right fixfor this would be to have a separate upper stage to adjust the finalscan/join relation (see comments for apply_scanjoin_target_to_paths());but for now, fix by adding the tlist eval cost when costing aggregatepushdown paths with local statistics.Apply this to HEAD only to avoid destabilizing existing plan choices.Author: Etsuro FujitaReviewed-By: Antonin HouskaDiscussion:https://postgr.es/m/5C66A056.60007%40lab.ntt.co.jp1 parent47a338c commitedbcbe2
File tree
2 files changed
+17
-3
lines changed- contrib/postgres_fdw
- src/backend/optimizer/plan
2 files changed
+17
-3
lines changedLines changed: 13 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2842 | 2842 |
| |
2843 | 2843 |
| |
2844 | 2844 |
| |
| 2845 | + | |
2845 | 2846 |
| |
2846 | 2847 |
| |
2847 | 2848 |
| |
2848 | 2849 |
| |
2849 | 2850 |
| |
2850 | 2851 |
| |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
2851 | 2857 |
| |
2852 | 2858 |
| |
2853 | 2859 |
| |
| |||
2856 | 2862 |
| |
2857 | 2863 |
| |
2858 | 2864 |
| |
2859 |
| - | |
| 2865 | + | |
2860 | 2866 |
| |
2861 | 2867 |
| |
2862 | 2868 |
| |
| |||
2909 | 2915 |
| |
2910 | 2916 |
| |
2911 | 2917 |
| |
2912 |
| - | |
| 2918 | + | |
| 2919 | + | |
2913 | 2920 |
| |
2914 | 2921 |
| |
2915 | 2922 |
| |
2916 | 2923 |
| |
| 2924 | + | |
2917 | 2925 |
| |
2918 | 2926 |
| |
2919 | 2927 |
| |
2920 | 2928 |
| |
2921 | 2929 |
| |
2922 | 2930 |
| |
2923 | 2931 |
| |
2924 |
| - | |
| 2932 | + | |
| 2933 | + | |
2925 | 2934 |
| |
2926 | 2935 |
| |
2927 | 2936 |
| |
2928 | 2937 |
| |
| 2938 | + | |
2929 | 2939 |
| |
2930 | 2940 |
| |
2931 | 2941 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7113 | 7113 |
| |
7114 | 7114 |
| |
7115 | 7115 |
| |
| 7116 | + | |
| 7117 | + | |
| 7118 | + | |
| 7119 | + | |
7116 | 7120 |
| |
7117 | 7121 |
| |
7118 | 7122 |
| |
|
0 commit comments
Comments
(0)