Add some instrumentation to the bgwriter, through the stats collector.
Magnus Hagander <magnus@hagander.net>
Add some instrumentation to the bgwriter, through the stats collector. New view pg_stat_bgwriter, and the functions required to build it.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/monitoring.sgml | modified | +76 −1 |
| src/backend/catalog/system_views.sql | modified | +11 −1 |
| src/backend/postmaster/bgwriter.c | modified | +24 −1 |
| src/backend/postmaster/pgstat.c | modified | +110 −1 |
| src/backend/storage/buffer/bufmgr.c | modified | +17 −1 |
| src/backend/utils/adt/pgstatfuncs.c | modified | +53 −1 |
| src/include/catalog/catversion.h | modified | +2 −2 |
| src/include/catalog/pg_proc.h | modified | +15 −1 |
| src/include/pgstat.h | modified | +39 −2 |
| src/test/regress/expected/rules.out | modified | +2 −1 |