Clamp autovacuum launcher sleep time to 5 minutes

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: da1a9d0f5bed1f93908be9233a4fef39b988e505
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2015-06-19T15:44:36Z
Releases: 9.5.0
Clamp autovacuum launcher sleep time to 5 minutes

This avoids the problem that it might go to sleep for an unreasonable
amount of time in unusual conditions like the server clock moving
backwards an unreasonable amount of time.

(Simply moving the server clock forward again doesn't solve the problem
unless you wake up the autovacuum launcher manually, say by sending it
SIGHUP).

Per trouble report from Prakash Itnal in
https://www.postgresql.org/message-id/CAHC5u79-UqbapAABH2t4Rh2eYdyge0Zid-X=Xz-ZWZCBK42S0Q@mail.gmail.com

Analyzed independently by Haribabu Kommi and Tom Lane.

Files

PathChange+/−
src/backend/postmaster/autovacuum.c modified +10 −0