Re: BUG #13472: VACUUM ANALYZE hangs on certain tables - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #13472: VACUUM ANALYZE hangs on certain tables
Date
Msg-id 20150626135342.GG4797@alap3.anarazel.de
Whole thread Raw
In response to BUG #13472: VACUUM ANALYZE hangs on certain tables  (matthew.seaman@adestra.com)
List pgsql-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

pgsql-bugs by date:

Previous
From: Marco Nenciarini
Date:
Subject: Re: BUG #13473: VACUUM FREEZE mistakenly cancel standby sessions
Next
From: Tom Lane
Date:
Subject: Re: operator family changes, sinval bug?