From: Tom Lane <tgl@sss.pgh.pa.us>
To: Maxim Boguk <Maxim.Boguk@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5946: Long exclusive lock taken by vacuum (not full)
Date: Fri, 25 Mar 2011 11:17:19 -0400
Message-ID: <4345.1301066239@sss.pgh.pa.us> (raw)
In-Reply-To: <201103250856.p2P8ufGc004544@wwwmaster.postgresql.org>
References: <201103250856.p2P8ufGc004544@wwwmaster.postgresql.org>
"Maxim Boguk" <Maxim.Boguk@gmail.com> writes:
> In my case vacuum tried to truncate last 10-15GB from 100Gb relation, and
> each time (3) it was cost 10+ minutes of service downtime (because that
> table was completely locked).
> Is that correct behaviour? Are here any way to speedup that process or at
> least allow read-only queries during that time?
Use autovacuum --- if there's something that wants to access the table,
autovac will get kicked off the lock. (Of course, the table may never
get truncated then, but maybe you don't care.)
regards, tom lane
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: tgl@sss.pgh.pa.us, Maxim.Boguk@gmail.com
Subject: Re: BUG #5946: Long exclusive lock taken by vacuum (not full)
In-Reply-To: <4345.1301066239@sss.pgh.pa.us>
References: <201103250856.p2P8ufGc004544@wwwmaster.postgresql.org> <4345.1301066239@sss.pgh.pa.us>
* 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