Emit warning if life check has not started yet.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 13 Aug 2025 11:08:08 +0000 (20:08 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 13 Aug 2025 11:08:08 +0000 (20:08 +0900)
commita85b848cc5e749051e3edfb892bdb366f7c23a31
treec6e35ca24779464e464620fa52aa02b69a442d10
parent78ba73ea994db19571f3933b0df75bfb2811c3c4
Emit warning if life check has not started yet.

Currently lifecheck emits a log only when life check becomes
ready. This is inconvenient for admins since they need to keep on
watching log file until life check is ready. This commit makes the
life check process to emit additional warnings periodically until life
check has started. The interval of the warnings is wd_interval * 10
seconds. However for the first time at lifecheck starting, no warning
is emitted since it is likely that lifecheck is not ready at that
point.
src/watchdog/wd_lifecheck.c