- Notifications
You must be signed in to change notification settings - Fork28
Commitd5db3ab
committed
Modify pgstats code to reduce performance penalties from oversized stats data
files: avoid creating stats hashtable entries for tables that aren't beingtouched except by vacuum/analyze, ensure that entries for dropped tables areremoved promptly, and tweak the data layout to avoid storing useless structpadding. Also improve the performance of pgstat_vacuum_tabstat(), and makesure that autovacuum invokes it exactly once per autovac cycle rather thanmultiple times or not at all. This should cure recent complaints about 8.1showing much higher stats I/O volume than was seen in 8.0. It'd still be agood idea to revisit the design with an eye to not re-writing the entirestats dataset every half second ... but that would be too much to backpatch,I fear.1 parente1af35a commitd5db3ab
File tree
5 files changed
+216
-209
lines changed- src
- backend
- commands
- postmaster
- storage/smgr
- include
5 files changed
+216
-209
lines changedLines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
324 | 325 |
| |
325 | 326 |
| |
326 | 327 |
| |
327 |
| - | |
| 328 | + | |
| 329 | + | |
328 | 330 |
| |
329 |
| - | |
| 331 | + | |
330 | 332 |
| |
331 | 333 |
| |
332 | 334 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
508 | 508 |
| |
509 | 509 |
| |
510 | 510 |
| |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
511 | 516 |
| |
512 | 517 |
| |
513 | 518 |
| |
| |||
572 | 577 |
| |
573 | 578 |
| |
574 | 579 |
| |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
575 | 587 |
| |
576 | 588 |
| |
577 | 589 |
| |
|
0 commit comments
Comments
(0)