]> granicus.if.org Git - postgresql/commit
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:59:03 +0000 (17:59 +0000)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Mon, 10 Sep 2007 17:59:03 +0000 (17:59 +0000)
commita441035198a8abe9e41fc086f5d14e7f0cab6efc
tree9f009ccb06863547a0996caba3db01ee842dd25a
parent43e398900d179a56f478f903bdde0d3d41265d51
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