forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaca467b
committed
Save another little bit of planner overhead on simple queries, by having
clauselist_selectivity skip some analysis that's useless when there's onlyone clause in the given list. Actually this can win even for not-so-simplequeries, because we also apply clauselist_selectivity to sublists such as thequals matching an index; which are likely to have only a single entry evenwhen the total query is quite complicated.1 parent7ebbc81 commitaca467b
1 file changed
+9
-1
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
100 | 100 |
| |
101 | 101 |
| |
102 | 102 |
| |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
103 | 111 |
| |
104 | 112 |
| |
105 | 113 |
| |
|
0 commit comments
Comments
(0)