forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaddc42c
committed
Create the planner mechanism for optimizing simple MIN and MAX queries
into indexscans on matching indexes. For the moment, it only handlesint4 and text datatypes; next step is to add a column to pg_aggregateso that all MIN/MAX aggregates can be handled. Per my recent proposal.1 parentc3294f1 commitaddc42c
File tree
14 files changed
+980
-201
lines changed- src
- backend
- optimizer
- path
- plan
- utils/cache
- include
- optimizer
- utils
- test/regress
- expected
- sql
14 files changed
+980
-201
lines changedLines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
57 |
| - | |
58 | 57 |
| |
59 | 58 |
| |
60 | 59 |
| |
| |||
72 | 71 |
| |
73 | 72 |
| |
74 | 73 |
| |
75 |
| - | |
76 |
| - | |
77 | 74 |
| |
78 | 75 |
| |
79 | 76 |
| |
| |||
234 | 231 |
| |
235 | 232 |
| |
236 | 233 |
| |
237 |
| - | |
| 234 | + | |
238 | 235 |
| |
239 | 236 |
| |
240 | 237 |
| |
| |||
1774 | 1771 |
| |
1775 | 1772 |
| |
1776 | 1773 |
| |
1777 |
| - | |
| 1774 | + | |
1778 | 1775 |
| |
1779 | 1776 |
| |
1780 | 1777 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
| 16 | + | |
16 | 17 |
| |
17 | 18 |
| |
18 | 19 |
| |
|
0 commit comments
Comments
(0)