Re: enable_timeout_every() and fin_time

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: enable_timeout_every() and fin_time
Дата
Msg-id CA+TgmoZvsehoTLyOodQeFvQsW85Yg_Rt3LSzXksYW_15oQs6Zw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: enable_timeout_every() and fin_time  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Tue, Jan 3, 2023 at 3:14 PM Andres Freund <andres@anarazel.de> wrote:
> Doesn't that discrepancy already exist as the code stands, because
> startup_progress_phase_start_time is also set in
> has_startup_progress_timeout_expired()?

I don't think it is, actually.

> I realize that was an example, but the
> issue seems broader: After the first "firing", the next timeout will be
> computed relative to an absolute time gathered in timestamp.c.

We're computing the time since the start of the current phase, not the
time since the last timeout. So I don't see how this is relevant.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Why are we using blocking libpq in the backend?
Следующее
От: Brar Piening
Дата:
Сообщение: Re: doc: add missing "id" attributes to extension packaging page