Commit 0a2bc5d
committed
Move per-agg and per-trans duplicate finding to the planner.
This has the advantage that the cost estimates for aggregates can count
the number of calls to transition and final functions correctly.
Bump catalog version, because views can contain Aggrefs.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/b2e3536b-1dbc-8303-c97e-89cb0b4a9a48%40iki.fi1 parent e522024 commit 0a2bc5d
File tree
29 files changed
+954
-746
lines changed- contrib/postgres_fdw
- src
- backend
- executor
- jit/llvm
- nodes
- optimizer
- path
- plan
- prep
- util
- parser
- utils/adt
- include
- catalog
- executor
- nodes
- optimizer
- utils
- test/regress
- expected
- sql
- tools/pgindent
29 files changed
+954
-746
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
2944 | 2945 | | |
2945 | 2946 | | |
2946 | 2947 | | |
2947 | | - | |
2948 | | - | |
2949 | | - | |
2950 | | - | |
2951 | | - | |
2952 | | - | |
2953 | | - | |
2954 | | - | |
2955 | | - | |
2956 | | - | |
| 2948 | + | |
2957 | 2949 | | |
2958 | 2950 | | |
2959 | 2951 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
779 | 778 | | |
780 | 779 | | |
781 | 780 | | |
782 | | - | |
783 | 781 | | |
784 | 782 | | |
785 | | - | |
786 | | - | |
| 783 | + | |
787 | 784 | | |
788 | 785 | | |
789 | 786 | | |
790 | 787 | | |
791 | 788 | | |
792 | | - | |
793 | | - | |
| 789 | + | |
794 | 790 | | |
795 | 791 | | |
796 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
| 1497 | + | |
1498 | 1498 | | |
1499 | 1499 | | |
1500 | 1500 | | |
1501 | | - | |
1502 | | - | |
| 1501 | + | |
| 1502 | + | |
1503 | 1503 | | |
1504 | 1504 | | |
1505 | 1505 | | |
| |||
0 commit comments