pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: matthew.seaman@adestra.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
Date: Fri, 26 Jun 2015 15:53:42 +0200
Message-ID: <20150626135342.GG4797@alap3.anarazel.de> (raw)
In-Reply-To: <20150626110830.3881.92624@wrigleys.postgresql.org>
References: <20150626110830.3881.92624@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Hello,m

On 2015-06-26 11:08:30 +0000, matthew.seaman@adestra.com wrote:
> We have two tables which we have not been able to vacuum sucessfully on one
> of our database servers.  The vacuum process just hangs almost
> instantaneously after issuing the 'VACUUM ANALYZE' command.

Hm. Is there a chance that your application uses cursors?

Could you send the output of:
SELECT oid::regclass, txid_current(), relfrozenxid, age(relfrozenxid)
FROM pg_class
WHERE oid = 'your relation'::regclass;

My theory is that there's a page that needs to be frozen, but a pin on
the page exists, preventing the cleanup lock from being acquired. Or
rather delaying it long enough that little progress is made.

Greetings,

Andres Freund


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



view thread (6+ messages)  latest in thread

Message-ID: <20150626135342.GG4797@alap3.anarazel.de>
Permalink:  ../20150626135342.GG4797@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20150626135342.GG4797@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-bugs@postgresql.org
  Cc: andres@anarazel.de, matthew.seaman@adestra.com
  Subject: Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
  In-Reply-To: <20150626135342.GG4797@alap3.anarazel.de>
  References: <20150626110830.3881.92624@wrigleys.postgresql.org> <20150626135342.GG4797@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