]> granicus.if.org Git - postgresql/commit
Clamp autovacuum launcher sleep time to 5 minutes
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 19 Jun 2015 15:44:35 +0000 (12:44 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Fri, 19 Jun 2015 15:44:35 +0000 (12:44 -0300)
commitcf733760eae1523022b652d4e673d336ef81b235
tree7e47b93da27fc120cdecbc1c9e0ce04612fc01d4
parent8507a5b37bd95717572c5fd1863758f478fe7b10
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.
src/backend/postmaster/autovacuum.c