From: Kevin Grittner <kgrittn@ymail.com>
To: Jamie Koceniak <jkoceniak@mediamath.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13426: table bloat - dead rows not removed after vacuum
Date: Wed, 10 Jun 2015 22:16:42 +0000 (UTC)
Message-ID: <1867376762.603220.1433974602221.JavaMail.yahoo@mail.yahoo.com> (raw)
In-Reply-To: <84CE67AB46ACDA41B18094177DD0853D3A8AC2@ORD2MBX04C.mex05.mlsrvr.com>
References: <84CE67AB46ACDA41B18094177DD0853D3A8AC2@ORD2MBX04C.mex05.mlsrvr.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Jamie Koceniak <jkoceniak@mediamath.com> wrote:
> David G. Johnston [mailto:david.g.johnston@gmail.com] wrote:
>> One possibility is that you have a long-running transaction
>> holding up cleanup.
> No long running queries are in pg_stat_activity.
It doesn't take a long-running *query* to cause a problem; it only
takes a long-running *transaction*. Look for transactions which
are "idle in transaction" with an old xact_start value. Also check
the pg_prepared_xacts view for rows with a "prepared" value that is
more than a few seconds old. Either will prevent the cleanup of
dead rows.
--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: kgrittn@ymail.com, jkoceniak@mediamath.com, david.g.johnston@gmail.com
Subject: Re: BUG #13426: table bloat - dead rows not removed after vacuum
In-Reply-To: <1867376762.603220.1433974602221.JavaMail.yahoo@mail.yahoo.com>
References: <84CE67AB46ACDA41B18094177DD0853D3A8AC2@ORD2MBX04C.mex05.mlsrvr.com> <1867376762.603220.1433974602221.JavaMail.yahoo@mail.yahoo.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