Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TiSQN-0005w5-G3 for pgsql-admin@arkaria.postgresql.org; Tue, 11 Dec 2012 16:11:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TiSQM-0001Cd-Jv for pgsql-admin@arkaria.postgresql.org; Tue, 11 Dec 2012 16:11:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TiSQL-0001CY-VZ for pgsql-admin@postgresql.org; Tue, 11 Dec 2012 16:11:14 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TiSQH-0002PG-3z for pgsql-admin@postgresql.org; Tue, 11 Dec 2012 16:11:13 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TiSQG-00073F-7S for pgsql-admin@postgresql.org; Tue, 11 Dec 2012 08:11:08 -0800 Date: Tue, 11 Dec 2012 08:11:08 -0800 (PST) From: Michael Sawyers To: pgsql-admin@postgresql.org Message-ID: <1355242268184-5736111.post@n5.nabble.com> Subject: Massive table bloat MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Our dba quit last week leaving me with an interesting problem. We have a table currently using 33gb worth of space for only 152mb worth of data because of bad processes or autovacuum not being aggressive enough. I was able to confirm the size difference by doing a create table as select along with a second test of restoring the table from the dump file to a dev machine. There is a very large list of foreign key relationships that I'm not including for the sake of brevity. The database version is 8.4.1 The old DBA had said that vacuum full would take days to complete, and we don't have that much of a window. So I was considering using the to force a full table rewrite. In testing on a dev machine it only took about five minutes. I do not have as much hands on experience with postgres so I wanted to get thoughts on what is considered the proper way to deal with this kind of situation. Any comments would be welcome. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Massive-table-bloat-tp5736111.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin