Sub-millisecond [autovacuum_]vacuum_cost_delay broken - Mailing list pgsql-hackers

From Melanie Plageman
Subject Sub-millisecond [autovacuum_]vacuum_cost_delay broken
Date
Msg-id CAAKRu_b-q0hXCBUCAATh0Z4Zi6UkiC0k2DFgoD3nC-r3SkR3tg@mail.gmail.com
Whole thread Raw
Responses Re: Sub-millisecond [autovacuum_]vacuum_cost_delay broken
List pgsql-hackers
Hi,

I think that 4753ef37e0ed undid the work caf626b2c did to support
sub-millisecond delays for vacuum and autovacuum.

After 4753ef37e0ed, vacuum_delay_point()'s local variable msec is a
double which, after being passed to WaitLatch() as timeout, which is a
long, ends up being 0, so we don't end up waiting AFAICT.

When I set [autovacuum_]vacuum_delay_point to 0.5, SHOW will report that
it is 500us, but WaitLatch() is still getting 0 as timeout.

- Melanie



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: allow_in_place_tablespaces vs. pg_basebackup
Next
From: Thomas Munro
Date:
Subject: Re: Sub-millisecond [autovacuum_]vacuum_cost_delay broken