Using checkpoint command instead of pg_switch_xlog.