Re: suppressing useless wakeups in logical/worker.c

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: suppressing useless wakeups in logical/worker.c
Дата
Msg-id 2888102.1674705840@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: suppressing useless wakeups in logical/worker.c  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: suppressing useless wakeups in logical/worker.c
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Thu, Jan 26, 2023 at 3:28 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> It'd probably be reasonable to file down that sharp edge by instead
>> specifying that TimestampDifferenceMilliseconds will clamp overflowing
>> differences to LONG_MAX.  Maybe there should be a clamp on the underflow
>> side too ... but should it be to LONG_MIN or to zero?

> That got me curious... Why did WaitLatch() use long in the first
> place?

Good question.  It's not a great choice, because of the inherent
platform specificity.  OTOH, I'm not sure it's worth the pain
to change now.

            regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: suppressing useless wakeups in logical/worker.c
Следующее
От: John Naylor
Дата:
Сообщение: Re: New strategies for freezing, advancing relfrozenxid early