Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 07ABA189E834 for ; Tue, 10 Apr 2012 04:20:16 -0300 (ADT) Received: from april.london.02.net ([87.194.255.143]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SHVN8-0004Yc-2p for pgsql-admin@postgresql.org; Tue, 10 Apr 2012 07:20:15 +0000 Received: from lenin.edesix.com (93.97.174.104) by april.london.02.net (8.5.140) id 4F728CFB0053AFE0 for pgsql-admin@postgresql.org; Tue, 10 Apr 2012 08:20:00 +0100 Received: from localhost ([127.0.0.1] helo=mail.edesix.com) by lenin.edesix.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1SHVMt-0001Wx-2N for pgsql-admin@postgresql.org; Tue, 10 Apr 2012 08:20:00 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 10 Apr 2012 08:19:58 +0100 From: robin To: Subject: Re: Giant Postgresql Database Cluster Folder In-Reply-To: References: Message-ID: X-Sender: robin@edesix.com User-Agent: Roundcube Webmail/0.5.3 X-Spam-Score: -21.9 (---------------------) X-Spam-Report: lenin.edesix.com has assigned spam score: -21.9 / 5.0 pts rule name description ---- ---------------------- -------------------------------------------------- -20 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/37 X-Sequence-Number: 39373 Given your data set is small so a dump/restore cycle is painless, you should also consider upgrading to the latest stable release. I agree with Raghu that you need to vacuum your database periodically to keep it's footprint under control, but rather than doing the VACUUM commands via scheduled activity you should use the auto vacuum daemon unless you have specific needs. You probably do need to do the first vacuum by hand with no users connected (or do a dump/restore cycle which is perhaps quicker with a system as bloated as yours). http://www.postgresql.org/docs/8.2/static/routine-vacuuming.html#AUTOVACUUM Given you missed the need to vacuum I would read the whole routine maintenance section in case there are other activities that you should be performing to keep your data safe and available: http://www.postgresql.org/docs/8.2/static/maintenance.html Hope this helps, Robin On Tue, 10 Apr 2012 11:44:08 +0530, raghu ram wrote: > On Tue, Apr 10, 2012 at 11:21 AM, Kiruba suthan wrote: > >> Could you help me how to clean up DB Cluster folder and reclaim disk >> space please? And please give me some insight into how data is >> organized in DB Cluster and what should I do to avoid this happening >> again?