Remove the vacuum_delay_point call in count_nondeletable_pages, because we hold

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: e52f4ec325c08f11739607b4571dba040c9075a9
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2007-09-10T17:58:56Z
Releases: 8.1.10
Remove the vacuum_delay_point call in count_nondeletable_pages, because we hold
an exclusive lock on the table at this point, which we want to release as soon
as possible.  This is called in the phase of lazy vacuum where we truncate the
empty pages at the end of the table.

An alternative solution would be to lower the vacuum delay settings before
starting the truncating phase, but this doesn't work very well in autovacuum
due to the autobalancing code (which can cause other processes to change our
cost delay settings).  This case could be considered in the balancing code, but
it is simpler this way.

Files

PathChange+/−
src/backend/commands/vacuumlazy.c modified +6 −2