Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQZRN-0003Dp-N3 for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Apr 2013 08:34:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UQZRN-0006kr-3q for pgsql-bugs@arkaria.postgresql.org; Fri, 12 Apr 2013 08:34:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQZRL-0006kj-Ad for pgsql-bugs@postgresql.org; Fri, 12 Apr 2013 08:34:35 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQZRG-0003Ae-TV for pgsql-bugs@postgresql.org; Fri, 12 Apr 2013 08:34:35 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UQZRF-0004BG-PF for pgsql-bugs@postgresql.org; Fri, 12 Apr 2013 08:34:30 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1UQZRA-00023J-ED for pgsql-bugs@postgresql.org; Fri, 12 Apr 2013 08:34:24 +0000 Date: Fri, 12 Apr 2013 08:34:24 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #8058: CLUSTER and VACUUM FULL fail to free space To: pgsql-bugs@postgresql.org From: daniel@heroku.com X-Pg-Spam-Score: -4.3 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org The following bug has been logged on the website: Bug reference: 8058 Logged by: Daniel Farina Email address: daniel@heroku.com PostgreSQL version: 9.0.13 Operating system: Ubuntu 10.04 Description:=20=20=20=20=20=20=20=20 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. This caused quite a few problems because would normally be cheap index scan over a mere 100 tuples were taking a few seconds. There are TOASTed fields on this table, ranging in a few hundred bytes of text per attribute. We have retained the old bloated table so we can poke at it. --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs