Concurrent VACUUM and ANALYZE - Mailing list pgsql-hackers

From Jonah H. Harris
Subject Concurrent VACUUM and ANALYZE
Date
Msg-id 36e682920807211450t26aefefap64107e30dc123f2b@mail.gmail.com
Whole thread Raw
Responses Re: Concurrent VACUUM and ANALYZE  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: Concurrent VACUUM and ANALYZE  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Concurrent VACUUM and ANALYZE  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Currently, one cannot perform a concurrent VACUUM and ANALYZE.  This
is a significant problem for tables which are not only large and have
designated cost-delays, but which are also heavily inserted into and
deleted from.  After performing a quick cursory investigation on this,
it doesn't appear to be difficult to change.  Other than the
ShareUpdateExclusiveLock, is there anything technically preventing us
from performing both concurrently?

Because we wouldn't want multiple ANALYZEs running on the same table,
changing the lock back to an AccessShareLock doesn't sound like a
solution.  However, what are the thoughts around creating another,
more-specific lock?  Perhaps something like ShareUpdateAnalysisLock?
Any other suggestions?

-Jonah


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: typedefs for indent
Next
From: Andrew Sullivan
Date:
Subject: Re: Load spikes on 8.1.11