Re: Suppressing useless wakeups in walreceiver

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: Suppressing useless wakeups in walreceiver
Дата
Msg-id
20221105230115.GF137360@nathanxps13
Ответ на
Список
Дерево обсуждения
Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Kyotaro Horiguchi <horikyota.ntt@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Tom Lane <tgl@sss.pgh.pa.us>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Thomas Munro <thomas.munro@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
Re: Suppressing useless wakeups in walreceiver Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: Suppressing useless wakeups in walreceiver Nathan Bossart <nathandbossart@gmail.com>
On Sat, Nov 05, 2022 at 03:00:55PM -0700, Nathan Bossart wrote:
> On Mon, Oct 17, 2022 at 03:21:18PM +0900, Kyotaro Horiguchi wrote:
>> Now that I see the fix for the implicit conversion:
>> 
>> L527: +				nap = Max(0, (nextWakeup - now + 999) / 1000);
>> ..
>> L545: +									   (int) Min(INT_MAX, nap),
>> 
>> 
>> I think limiting the naptime at use is confusing. Don't we place these
>> adjacently?  Then we could change the nap to an integer.  Or we can
>> just assert out for the nap time longer than INT_MAX (but this would
>> require another int64 variable. I belive we won't need such a long
>> nap, (or that is no longer a nap?)
> 
> Yeah, I guess this deserves a comment.  I could also combine it easily:
> 
> 	nap = (int) Min(INT_MAX, Max(0, (nextWakeup - now + 999) / 1000));

Here is a new version of the patch that addresses this feedback.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
В списке pgsql-hackers по дате отправления
От: Nathan Bossart
Дата:
От: Andres Freund
Дата:
FAQ