Daniel Gustafsson <daniel(at)yesql(dot)se> writes:
>> On 26 Aug 2021, at 09:38, constzl <const_sunny(at)126(dot)com> wrote:
>> if ((worker->bgw_restart_time < 0 &&
>> worker->bgw_restart_time != BGW_NEVER_RESTART) ||
>> (worker->bgw_restart_time > USECS_PER_DAY / 1000))
> My reading of the above code is that is tries to catch nonsensical values, not
> to cap it to enforce restarts within a 24h period.
This may be intended to guard against integer overflows later (he guesses
without having read the code).
regards, tom lane