use dict for pg_stat_bgwriter