X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 7D972CCF55 for ; Sat, 19 Jul 2003 13:27:24 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 00356-03 for ; Sat, 19 Jul 2003 13:27:43 +0000 (GMT) Received: from proteus.affordablehost.com (proteus.affordablehost.com [216.46.203.177]) by svr1.postgresql.org (Postfix) with ESMTP id A1088CB516 for ; Sat, 19 Jul 2003 10:27:11 -0300 (ADT) Received: from [66.31.57.228] (helo=Laptop) by proteus.affordablehost.com with smtp (Exim 4.20) id 19drkP-0006Pi-UW; Sat, 19 Jul 2003 09:27:38 -0400 From: Andrew Biagioni To: mlaks , "scott.marlowe" Cc: pgsql-admin@postgresql.org Date: Sat, 19 Jul 2003 09:27:34 -0400 X-Priority: 3 (Normal) Organization: E-Greek, llc In-Reply-To: Message-Id: Subject: Re: Database growth problem MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Mailer: Opera 6.05 build 1140 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/179 X-Sequence-Number: 9519 7/18/03 10:06:29 AM, "scott.marlowe" wrote: >On Thu, 17 Jul 2003, mlaks wrote: > >> Hi, >> >> I have about 15 different PC's running RedHat 7.3 Linux, each running the >> same database backed application (I use Postgresql 7.2.1 for the database) >> on each machine. > >Upgrade to 7.2.4 as soon as possible. There are bugs in 7.2.3 and before >that can cause data loss. > >> I also keep one machine slightly different than the others. >> >> On this machine, as a backup to the other machines, instead of just storing >> files without deleting, I use a scheme that stores new files as they come in >> but also deletes the oldest files from the RAID and also deletes the >> corresponding entries describing those entries from the database. I use this >> machine as an element of redundancy to recent files on the other machines. >> >> On this system, I keep the RAID about 75% full of files, and thus I imagine >> that the Postgresql database should be about .75 of a GB in size. However, it >> isnt! I find that it keeps growing as time goes on. Its now about 3.9GB in >> size! > >This sounds like index growth. I'm guessing you're indexing on a field >that only increments, and the btree is growing in one direction only. >There's a fix in for 7.4 for this, but for now, all you likely need to do >is reindex the index that keeps growing. Just wondering ... Are you vacuuming the tables every now and then? I certainly didn't find out about it right away...