SELECT checkpoints_timed FROM pg_catalog.pg_stat_bgwriter;