forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit88b0898
committed
Improve estimation of OR clauses using multiple extended statistics.
When estimating an OR clause using multiple extended statisticsobjects, treat the estimates for each set of clauses for eachstatistics object as independent of one another. The overlap estimatesproduced for each statistics object do not apply to clauses covered byother statistics objects.Dean Rasheed, reviewed by Tomas Vondra.Discussion:https://postgr.es/m/CAEZATCW=J65GUFm50RcPv-iASnS2mTXQbr=CfBvWRVhFLJ_fWA@mail.gmail.com1 parentf2a69b3 commit88b0898
File tree
2 files changed
+18
-9
lines changed- src
- backend/statistics
- test/regress/expected
2 files changed
+18
-9
lines changedLines changed: 17 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1356 | 1356 |
| |
1357 | 1357 |
| |
1358 | 1358 |
| |
1359 |
| - | |
| 1359 | + | |
| 1360 | + | |
1360 | 1361 |
| |
1361 | 1362 |
| |
1362 | 1363 |
| |
1363 | 1364 |
| |
1364 | 1365 |
| |
1365 | 1366 |
| |
1366 |
| - | |
1367 |
| - | |
1368 |
| - | |
1369 |
| - | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
1370 | 1372 |
| |
1371 | 1373 |
| |
1372 | 1374 |
| |
| |||
1437 | 1439 |
| |
1438 | 1440 |
| |
1439 | 1441 |
| |
1440 |
| - | |
1441 |
| - | |
1442 |
| - | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
1443 | 1445 |
| |
1444 | 1446 |
| |
1445 | 1447 |
| |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
1446 | 1455 |
| |
1447 | 1456 |
| |
1448 | 1457 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1706 | 1706 |
| |
1707 | 1707 |
| |
1708 | 1708 |
| |
1709 |
| - | |
| 1709 | + | |
1710 | 1710 |
| |
1711 | 1711 |
| |
1712 | 1712 |
| |
|
0 commit comments
Comments
(0)