The maximum for bgwriter_delay is currently 10 seconds. That's a long
time, and in fact if you set it to a value greater than 1 s, the sleep
is split into 1 s intervals with a call to AbsorbFsyncRequests in
between them.
Is there a use case for a setting > 1 s? We could simplify that logic a
little bit if we just set the maximum at 1 s.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com