From: Matthew Seaman <m.seaman@infracaninophile.co.uk>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
Date: Mon, 29 Jun 2015 11:07:55 +0100
Message-ID: <559118FB.1070605@infracaninophile.co.uk> (raw)
In-Reply-To: <20150626155845.GA30708@awork2.anarazel.de>
References: <20150626110830.3881.92624@wrigleys.postgresql.org>
<20150626135342.GG4797@alap3.anarazel.de>
<558D6429.7080400@adestra.com>
<20150626145811.GI4797@alap3.anarazel.de>
<558D6DEF.3090208@adestra.com>
<20150626155845.GA30708@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 2015/06/26 16:58, Andres Freund wrote:
> On 2015-06-26 16:21:19 +0100, Matthew Seaman wrote:
>> Restarting the DB is going to require all sorts of outage notifications
>> and general palaver, so we'd definitely prefer not to that if we can
>> possibly avoid it.
>
> Is it feasible to lock the table exclusively for a short time? If so you
> can just VACUUM FULL them - given the table sizes that should be fairly
> quick.
>
> (The difference between table level exclusive locks and cleanup locks is
> that the latter aren't "fair", i.e. a continious stream of pins will
> block them, whereas heavyweight locks are queued)
We have found the culprit -- a long running query was apparently locking
one of the tables, and killing it has allowed the vacuum to complete.
We had checked pg_locks but for some reason this query wasn't obvious.
Thanks for you help, and I think we can close this one.
Cheers
Matthew (posting from the account I subscribed to the list with, but I
am the same person as matthew.seaman@adestra.com)
Attachments:
signature.asc (application/pgp-signature, 971B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: m.seaman@infracaninophile.co.uk
Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
In-Reply-To: <559118FB.1070605@infracaninophile.co.uk>
References: <20150626110830.3881.92624@wrigleys.postgresql.org> <20150626135342.GG4797@alap3.anarazel.de> <558D6429.7080400@adestra.com> <20150626145811.GI4797@alap3.anarazel.de> <558D6DEF.3090208@adestra.com> <20150626155845.GA30708@awork2.anarazel.de> <559118FB.1070605@infracaninophile.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox