forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita547e68
committed
Adjust cost model for HashAgg that spills to disk.
Tomas Vondra observed that the IO behavior for HashAgg tends to beworse than for Sort. Penalize HashAgg IO costs accordingly.Also, account for the CPU effort of spilling the tuples and readingthem back.Discussion:https://postgr.es/m/20200906212112.nzoy5ytrzjjodpfh@developmentReviewed-by: Tomas VondraBackpatch-through: 131 parent53367e6 commita547e68
1 file changed
+13
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2416 | 2416 |
| |
2417 | 2417 |
| |
2418 | 2418 |
| |
| 2419 | + | |
2419 | 2420 |
| |
2420 | 2421 |
| |
2421 | 2422 |
| |
| |||
2453 | 2454 |
| |
2454 | 2455 |
| |
2455 | 2456 |
| |
| 2457 | + | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
2456 | 2464 |
| |
2457 | 2465 |
| |
2458 | 2466 |
| |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
2459 | 2472 |
| |
2460 | 2473 |
| |
2461 | 2474 |
| |
|
0 commit comments
Comments
(0)