- Notifications
You must be signed in to change notification settings - Fork5
Commit3c2313f
committed
Change the pgstat logic so that the stats collector writes the stats file only
upon requests from backends, rather than on a fixed 500msec cycle. (There'sstill throttling logic to ensure it writes no more often than once per500msec, though.) This should result in a significant reduction in stats filewrite traffic in typical scenarios where the stats are demanded onlyinfrequently.This approach also means that the former difficulty with changingstats_temp_directory on-the-fly has gone away, so remove the caution aboutthat as well as the thrashing we did to minimize the trouble window.In passing, also fix pgstat_report_stat() so that we will send a statsmessage if we have function call stats but not table stats to report;this fixes a bug in the recent patch to support function-call stats.Martin Pihlak1 parentd7112cf commit3c2313f
File tree
3 files changed
+204
-65
lines changed- doc/src/sgml
- src
- backend/postmaster
- include
3 files changed
+204
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
3350 | | - | |
3351 | | - | |
3352 | | - | |
3353 | 3350 | | |
3354 | 3351 | | |
3355 | 3352 | | |
| |||
0 commit comments
Comments
(0)