From: Royce Ausburn <royce.ml@inomial.com>
To: Marti Raudsepp <marti@juffo.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Subject: Re: Ineffective autovacuum
Date: Wed, 28 Sep 2011 00:27:39 +1000
Message-ID: <A0DE3560-2C7F-4220-BED5-CC8D6266499B@inomial.com> (raw)
In-Reply-To: <CABRT9RC2BB6Y8QO9O7PwPYrbjCB6EsK4F-uh-uJ=vArwC=j8MA@mail.gmail.com>
References: <059E65EF-8C66-4DA6-835C-936D6592C94B@inomial.com>
<14103.1317097282@sss.pgh.pa.us>
<2499AF8B-FB90-40F9-9CF7-5BDC0F33BE6E@inomial.com>
<CABRT9RC2BB6Y8QO9O7PwPYrbjCB6EsK4F-uh-uJ=vArwC=j8MA@mail.gmail.com>
On 27/09/2011, at 8:29 PM, Marti Raudsepp wrote:
> 1. First things first: vacuum cannot delete tuples that are still
> visible to any old running transactions. You might have some very long
> queries or transactions that prevent it from cleaning properly:
>
> select * from pg_stat_activity where xact_start < now()-interval '10 minutes';
Thanks -- that query is very handy. I suspect this might be the cause of our woes as this query results in a handful of long lived connections, however they're connections to databases other than the one that I'm having trouble with.
I've checked up on the FSM as you suggested, I don't think that's the problem as there're no warnings in the verbose output nor the logs. But another clue:
DETAIL: 93 dead row versions cannot be removed yet.
After clearing those stuffed transactions vacuum verbose manages to clear away all the dead rows… That's confirmation enough for me - Now to find the application bugs - Thanks Tom, Marti & Scott for your help!
--Royce
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-performance@postgresql.org
Cc: royce.ml@inomial.com, marti@juffo.org, tgl@sss.pgh.pa.us
Subject: Re: Ineffective autovacuum
In-Reply-To: <A0DE3560-2C7F-4220-BED5-CC8D6266499B@inomial.com>
References: <059E65EF-8C66-4DA6-835C-936D6592C94B@inomial.com> <14103.1317097282@sss.pgh.pa.us> <2499AF8B-FB90-40F9-9CF7-5BDC0F33BE6E@inomial.com> <CABRT9RC2BB6Y8QO9O7PwPYrbjCB6EsK4F-uh-uJ=vArwC=j8MA@mail.gmail.com> <A0DE3560-2C7F-4220-BED5-CC8D6266499B@inomial.com>
* 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