From: Andres Freund <andres@anarazel.de>
To: Matthew Seaman <matthew.seaman@adestra.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
Date: Fri, 26 Jun 2015 17:58:45 +0200
Message-ID: <20150626155845.GA30708@awork2.anarazel.de> (raw)
In-Reply-To: <558D6DEF.3090208@adestra.com>
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
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)
- Andres
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: andres@anarazel.de, matthew.seaman@adestra.com
Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
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>
* 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