postgresql - What's the unit of buffers_checkpoint in pg_stat_bgwriter table? -
i'm using postgresql-9.1.6 , trying build monitoring application postgresql server. i'm planning select physical , logical i/o stat pg_stat_* information tables. according manual unit of fields in pg_stat_database block means size of 8kb . postgres=# select * pg_stat_database datname='postgres'; -[ record 3 ]-+------------------------------ datid | 12780 datname | postgres numbackends | 2 xact_commit | 974 xact_rollback | 57 blks_read | 210769 blks_hit | 18664177 tup_returned | 16074339 tup_fetched | 35121 tup_inserted | 18182015 tup_updated | 572 tup_deleted | 3075 conflicts | 0 i figure out size of physical read usging blks_read * 8kb. however, there no comments on unit of stats in pg_stat_bgwriter . postgres=# select * pg_stat_bgwriter; -[ record 1 ]---------+------------------------------ checkpoints_timed | 276 checkpoints_req | 8 buffers_checkpoint | 94956 buffers_clean | 0 maxwrit...