Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 05B832E004C for ; Tue, 15 Apr 2008 08:12:39 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 99657-06 for ; Tue, 15 Apr 2008 08:12:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by developer.postgresql.org (Postfix) with ESMTP id 8050B2E004A for ; Tue, 15 Apr 2008 08:12:26 -0300 (ADT) Received: from working (c-71-60-127-199.hsd1.pa.comcast.net [71.60.127.199]) (AUTH: LOGIN wmoran, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Tue, 15 Apr 2008 07:13:19 -0400 id 00056405.48048DCF.00011323 Date: Tue, 15 Apr 2008 07:12:22 -0400 From: Bill Moran To: Adrian Moisey Cc: pgsql-performance@postgresql.org Subject: Re: db size Message-Id: <20080415071222.36b2e8eb.wmoran@collaborativefusion.com> In-Reply-To: <48045A32.3010607@careerjunction.co.za> References: <4802F9E4.3000704@careerjunction.co.za> <48032237.4040604@careerjunction.co.za> <4803276C.2090901@careerjunction.co.za> <48045A32.3010607@careerjunction.co.za> Organization: Collaborative Fusion Inc. X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/191 X-Sequence-Number: 29684 Adrian Moisey wrote: > > Hi > > >>> 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. > > Can anybody give me some advice on the above? I'm not sure where to > start looking or how to start looking Running VACUUM VERBOSE will give you a detailed view of space usage of each individual table. -- Bill Moran Collaborative Fusion Inc. wmoran@collaborativefusion.com Phone: 412-422-3463x4023