Remove the vacuum_delay_point call in count_nondeletable_pages, because we hold
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 10 Sep 2007 17:58:45 +0000 (17:58 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 10 Sep 2007 17:58:45 +0000 (17:58 +0000)
commit21c27af65fb21a36ff263bcd9e8e7cac0419984c
treed7c12621e9b7f03396e44a0eb54f3474466412b6
parentd982daae0bbbab2a73a5008e6eb2afe6199230c5
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.
src/backend/commands/vacuumlazy.c