X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 62FF09FA4B4 for ; Wed, 13 Sep 2006 10:53:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 07616-08 for ; Wed, 13 Sep 2006 13:53:24 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mmp2.nems.noaa.gov (mmp2.nems.noaa.gov [140.90.121.157]) by postgresql.org (Postfix) with ESMTP id 80B589FA380 for ; Wed, 13 Sep 2006 10:53:24 -0300 (ADT) Received: from [192.168.2.2] (ip68-227-201-228.dc.dc.cox.net [68.227.201.228]) by mmp2.nems.noaa.gov (iPlanet Messaging Server 5.2 HotFix 2.01 (built Aug 26 2004)) with ESMTPSA id <0J5J007GUAKVJZ@mmp2.nems.noaa.gov> for pgsql-admin@postgresql.org; Wed, 13 Sep 2006 09:53:19 -0400 (EDT) Date: Wed, 13 Sep 2006 09:53:16 -0400 From: Kevin Johnson Subject: Disk space consumed by pk not returned after vacuum or reindex To: pgsql-admin@postgresql.org Cc: Sean Webb Message-id: <45080D4C.2020709@noaa.gov> MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_BMCzPKqpq5COdRjZiAiLRQ)" User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200609/107 X-Sequence-Number: 23021 This is a multi-part message in MIME format. --Boundary_(ID_BMCzPKqpq5COdRjZiAiLRQ) Content-type: multipart/alternative; boundary="Boundary_(ID_779RKC+wyBai/V0W0cpm+A)" --Boundary_(ID_779RKC+wyBai/V0W0cpm+A) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Hello, I am running into a problem on a RHEL3 systems, running PostgreSQL 7.4 We have a database, which consistently consumes more and more of the disk space in it's lvol until it reaches 100%. So far, we have tried to run a full vacuum on the database, with limited success. Eventually, we had to drop and reload the database with the same data inside. It brought the disk usage down to 73%. It then began to creep once more toward 100%. After some research, I was able to use the pg_class catalog to find that the items which are expanding the quickest are primary key (btree) indexes. I attempted to run a REINDEX on one of the tables with the pk taking up the largest amount of space. The usage according to pg_class dropped dramatically, however the disk space was not returned to the system. So I attempted another full vacuum afterwards, and still nothing was returned to the system. These tables are updated extremely frequently (although their total number of rows is close to constant), which is my guess as to why the pk indexes increase so rapidly in terms of their disk usage. Unfortunately, PostgreSQL knowledge is limited, and I was wondering if anyone had experienced something similar / knows what else we can do to return this disk space back to the system? Thank you in advance for any/all help! Kevin --Boundary_(ID_779RKC+wyBai/V0W0cpm+A) Content-type: text/html; charset=ISO-8859-1 Content-transfer-encoding: 7BIT Hello,

I am running into a problem on a RHEL3 systems, running PostgreSQL 7.4

We have a database, which consistently consumes more and more of the disk space in it's lvol until it reaches 100%.  So far, we have tried to run a full vacuum on the database, with limited success.  Eventually, we had to drop and reload the database with the same data inside.  It brought the disk usage down to 73%.  It then began to creep once more toward 100%.  After some research, I was able to use the pg_class catalog to find that the items which are expanding the quickest are primary key (btree) indexes.  I attempted to run a REINDEX on one of the tables with the pk taking up the largest amount of space.  The usage according to pg_class dropped dramatically, however the disk space was not returned to the system.  So I attempted another full vacuum afterwards, and still nothing was returned to the system.  These tables are updated extremely frequently (although their total number of rows is close to constant), which is my guess as to why the pk indexes increase so rapidly in terms of their disk usage.  Unfortunately, PostgreSQL knowledge is limited, and I was wondering if anyone had experienced something similar / knows what else we can do to return this disk space back to the system?

Thank you in advance for any/all help!

Kevin

--Boundary_(ID_779RKC+wyBai/V0W0cpm+A)-- --Boundary_(ID_BMCzPKqpq5COdRjZiAiLRQ) Content-type: text/x-vcard; charset=utf-8; name=Kevin.Johnson.vcf Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=Kevin.Johnson.vcf begin:vcard fn:Kevin Johnson n:Johnson;Kevin org:Raytheon AWIPS Team adr:SMCC II;;;1325 East West Highway;Silver Spring;MD;20910 email;internet:Kevin.Johnson@noaa.gov title:Sr. Systems Engineer tel;work:301.713.9362 x325 tel;cell:301.787.0648 x-mozilla-html:TRUE version:2.1 end:vcard --Boundary_(ID_BMCzPKqpq5COdRjZiAiLRQ)--