Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 21237B5DDF0 for ; Tue, 6 Sep 2011 18:06:17 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 65034-01 for ; Tue, 6 Sep 2011 21:06:09 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 7F28CB5DDED for ; Tue, 6 Sep 2011 18:06:08 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R12qO-0005Oa-Ia for pgsql-admin@postgresql.org; Tue, 06 Sep 2011 14:06:08 -0700 Date: Tue, 6 Sep 2011 14:06:08 -0700 (PDT) From: MirrorX To: pgsql-admin@postgresql.org Message-ID: <1315343168569-4776084.post@n5.nabble.com> Subject: dump/restore vs vacuum full vs cluster MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201109/23 X-Sequence-Number: 38260 hello to all i am stuck in the following situation. i have a table which is 500GB. due to some deleted rows the actual size is about 350-400GB and i would like to reclaim that disk space since from now on this table will remain at this level (350-400GB). the system is in production but the specific table doesn't affect a lot of procedures on the server so it would be ok to do this maintenance 'online'. this table also has 2 indexes. one for its primary key and one for another column, about 100GB each. as i understand my options are: 1) dump the data of the table, truncate the table, restore it (what happens to the indexes in this case?) 2)vacuum full and then reindex 3)cluster (based on the 2nd index) what would you suggest if the most important factor is to minimize the total time for this procedure?and, is there is any other option except the mentioned above? thx in advance -- View this message in context: http://postgresql.1045698.n5.nabble.com/dump-restore-vs-vacuum-full-vs-cluster-tp4776084p4776084.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.