Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 74E6E2E0039 for ; Mon, 14 Apr 2008 06:44:26 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88560-06 for ; Mon, 14 Apr 2008 06:44:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cptwks26.careerjunction.local (unknown [196.212.105.173]) by developer.postgresql.org (Postfix) with ESMTP id 94F632E003A for ; Mon, 14 Apr 2008 06:44:18 -0300 (ADT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by cptwks26.careerjunction.local (Postfix) with ESMTP id 9085AB7B9F; Mon, 14 Apr 2008 11:44:12 +0200 (SAST) Message-ID: <4803276C.2090901@careerjunction.co.za> Date: Mon, 14 Apr 2008 11:44:12 +0200 From: Adrian Moisey User-Agent: Thunderbird 2.0.0.12 (X11/20080227) MIME-Version: 1.0 To: PFC CC: pgsql-performance@postgresql.org Subject: Re: db size References: <4802F9E4.3000704@careerjunction.co.za> <48032237.4040604@careerjunction.co.za> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/172 X-Sequence-Number: 29665 Hi >> the live one is 113G >> the restored one is 78G > > Good news for you is that you know that you can do something ;) :) Will this help with performance ? > Now, is the bloat in the tables (which tables ?) or in the indexes > (which indexes ?), or in the toast tables perhaps, or in the system > catalogs or all of the above ? Or perhaps there is a long-forgotten > process that got zombified while holding a huge temp table ? (not very > likely, but who knows). > Use pg_relation_size() and its friends to get an idea of the size of > stuff. I'll look into that, thanks -- Adrian Moisey Systems Administrator | CareerJunction | Your Future Starts Here. Web: www.careerjunction.co.za | Email: adrian@careerjunction.co.za Phone: +27 21 686 6820 | Mobile: +27 82 858 7830 | Fax: +27 21 686 6842