Re: lazy vacuum and AccessExclusiveLock

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Jaromír Talíř <jaromir(dot)talir(at)nic(dot)cz>, pgsql-general(at)postgresql(dot)org
Subject: Re: lazy vacuum and AccessExclusiveLock
Date: 2009-09-25 22:41:29
Message-ID: 20090925224129.GV3914@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > 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.
>
> I don't think autovacuum has a problem --- if someone requests a
> conflicting lock, autovac will get kicked off, no? The OP's problem
> comes from doing a manual vacuum. Perhaps "don't do that" is a good
> enough answer.

Hah, that was part of the commit message, which predates autovacuum
getting kicked out in case of conflicting locks IIRC.

I think the process being described is unusual enough that a manual
vacuum at just the right time is warranted ...

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-09-25 22:48:13 Re: Low values for cached size
Previous Message Tom Lane 2009-09-25 22:38:35 Re: pg_restore ordering questions