pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Harold Falkmeyer <hfalkmeyer@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: VACUUM ANALYZE Issues
Date: Thu, 8 Jun 2017 22:25:10 -0700
Message-ID: <20170609052510.evu73vqxam6kwpzz@alap3.anarazel.de> (raw)
In-Reply-To: <CACcYrivHfizYrWup2MNUjBSddx2RYwN-1qeV6Xdgj0qD3i-MnQ@mail.gmail.com>
References: <CACcYriu+wuhS7rDNgBRaySb7J59i3Y_4aqxLP+-L+xst4=4Syw@mail.gmail.com>
	<20170605224725.2jim73rpppgyoooh@alap3.anarazel.de>
	<CACcYriuL4QUqYYFtLAdQB4CEb4_rZveHe3SskzHXiSpA=gxKCw@mail.gmail.com>
	<CACcYriumnVyQp53MyRqwJ-ZaTme+5NtTbZXoS=2F_5mXXQqHKw@mail.gmail.com>
	<CACcYrivHfizYrWup2MNUjBSddx2RYwN-1qeV6Xdgj0qD3i-MnQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Hi,

Please don't full-quote on this list.

On 2017-06-08 21:52:38 -0700, Harold Falkmeyer wrote:
> What would cause a VACUUM ANALYZE to acquire an ACCESS EXCLUSIVE lock (not
> running as a VACUUM FULL)?

It does so when truncating the relation, to remove free space at the end
of the relation. If there's a lot of free space, that can take a while.
This has been much improved in releases since 8.4...

- Andres


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (7+ messages)  latest in thread

Message-ID: <20170609052510.evu73vqxam6kwpzz@alap3.anarazel.de>
Permalink:  ../20170609052510.evu73vqxam6kwpzz@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20170609052510.evu73vqxam6kwpzz@alap3.anarazel.de

 · 

reply

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-admin@postgresql.org
  Cc: andres@anarazel.de, hfalkmeyer@gmail.com
  Subject: Re: VACUUM ANALYZE Issues
  In-Reply-To: <20170609052510.evu73vqxam6kwpzz@alap3.anarazel.de>
  References: <CACcYriu+wuhS7rDNgBRaySb7J59i3Y_4aqxLP+-L+xst4=4Syw@mail.gmail.com> <20170605224725.2jim73rpppgyoooh@alap3.anarazel.de> <CACcYriuL4QUqYYFtLAdQB4CEb4_rZveHe3SskzHXiSpA=gxKCw@mail.gmail.com> <CACcYriumnVyQp53MyRqwJ-ZaTme+5NtTbZXoS=2F_5mXXQqHKw@mail.gmail.com> <CACcYrivHfizYrWup2MNUjBSddx2RYwN-1qeV6Xdgj0qD3i-MnQ@mail.gmail.com> <20170609052510.evu73vqxam6kwpzz@alap3.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