Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id D27F59FC1DC for ; Fri, 15 Jun 2007 14:15:46 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 54449-03 for ; Fri, 15 Jun 2007 14:15:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from zoraida.natserv.net (p65-147.acedsl.com [66.114.65.147]) by postgresql.org (Postfix) with ESMTP id 1EAC29FC1B4 for ; Fri, 15 Jun 2007 14:15:43 -0300 (ADT) Received: by zoraida.natserv.net (Postfix, from userid 58) id 27C69C2EE; Fri, 15 Jun 2007 13:15:42 -0400 (EDT) Received: from 35st.simplicato.com (static-71-249-233-130.nycmny.east.verizon.net [71.249.233.130]) by zoraida.natserv.net (Postfix) with ESMTP id 353FFC2AF; Fri, 15 Jun 2007 13:15:39 -0400 (EDT) References: <1181290934.160823.161630@w5g2000hsg.googlegroups.com> Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Francisco Reyes To: choksi Cc: pgsql-performance@postgresql.org Subject: Re: Database size Date: Fri, 15 Jun 2007 13:15:37 -0400 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.247 tagged_above=0 required=5 tests=AWL=0.111, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/279 X-Sequence-Number: 25312 choksi writes: > I had a database which uses to hold some 50 Mill records and disk > space used was 103 GB. I deleted around 34 Mill records but still the > disk size is same. Can some on please shed some light on this. When records are deleted they are only marked in the database. When you run vacuum in the database that space will be marked so new data can use the space. To lower the space used you need to run "vacuum full". That however can take a while and I think it will lock the database for some operations.