Re: Is Backgroundworker.bgw_restart_time is defined in seconds?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Is Backgroundworker.bgw_restart_time is defined in seconds?
Дата
Msg-id 648775.1629986832@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Is Backgroundworker.bgw_restart_time is defined in seconds?  (Daniel Gustafsson <daniel@yesql.se>)
Список pgsql-bugs
Daniel Gustafsson <daniel@yesql.se> writes:
>> On 26 Aug 2021, at 09:38, constzl <const_sunny@126.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



В списке pgsql-bugs по дате отправления:

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: BUG #17157: authorizaiton of dict_int and bloom extention
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17162: order by clause is not pushed down to foreign scans when a WHERE clause is given in query