From: Tom Lane <tgl@sss.pgh.pa.us>
To: daniel@heroku.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8058: CLUSTER and VACUUM FULL fail to free space
Date: Fri, 12 Apr 2013 10:41:41 -0400
Message-ID: <17000.1365777701@sss.pgh.pa.us> (raw)
In-Reply-To: <E1UQZRA-00023J-ED@wrigleys.postgresql.org>
References: <E1UQZRA-00023J-ED@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
daniel@heroku.com writes:
> We have a somewhat high-churn table acting as a queue, and over time it's
> grown to be something like a gigabyte. I surmised it might be vanilla
> bloat, but the truth seems somewhat more exotic because both VACUUM FULL and
> CLUSTER generated absolutely no new free space.
> In the end, ALTER TABLE and CREATE TABLE ... (LIKE) ran nearly instantly and
> got the table size down to a few hundred K from 900M.
My money is on there being old idle transactions somewhere that kept
recently-dead rows from being reclaimable. If memory serves, VACUUM
FULL and CLUSTER will faithfully retain such rows, but of course a
manual data transfer like that wouldn't.
> We have retained the old bloated table so we can poke at it.
I think contrib/pgstattuple could tell you about dead tuples.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, daniel@heroku.com
Subject: Re: BUG #8058: CLUSTER and VACUUM FULL fail to free space
In-Reply-To: <17000.1365777701@sss.pgh.pa.us>
References: <E1UQZRA-00023J-ED@wrigleys.postgresql.org> <17000.1365777701@sss.pgh.pa.us>
* 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