Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THNEv-0004AH-Ra for pgsql-admin@postgresql.org; Thu, 27 Sep 2012 23:11:29 +0000 Received: from mailgate.iii.com ([205.227.88.3]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1THNEt-0006cg-9J for pgsql-admin@postgresql.org; Thu, 27 Sep 2012 23:11:29 +0000 Received: from mailhub.iii.com (mailhub.iii.com [10.1.2.3] (may be forged)) by mailgate.iii.com (8.13.1/8.13.1) with ESMTP id q8S0YThq017495 for ; Thu, 27 Sep 2012 17:34:30 -0700 Received: from [10.1.3.160] ([10.1.3.160]) by mailhub.iii.com (8.13.1/8.13.1) with ESMTP id q8S0RSGm007184 for ; Thu, 27 Sep 2012 17:27:29 -0700 Message-ID: <5064DD1F.5040705@iii.com> Date: Thu, 27 Sep 2012 16:11:27 -0700 From: Dinesh Bhandary Reply-To: dbhandary@iii.com Organization: Innovative Interfaces User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Database size stays constant but disk space keeps shrinking -- postgres 9.1 References: <1348783559.78739.YahooMailNeo@web125906.mail.ne1.yahoo.com> In-Reply-To: <1348783559.78739.YahooMailNeo@web125906.mail.ne1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) X-Archive-Number: 201209/166 X-Sequence-Number: 40107 You might also want to check to see if temp files are growing out of bounds. Thanks. Dinesh On 9/27/2012 3:05 PM, Greg Williamson wrote: > Dear list, > > I have a postgres database, 9.1.3, which shows a fairly constant amount of space used by postgres, but total disk space kees shrinking. > If I restart postgres the space on my file system returns. > > This cluster is replicated to another; that custer does not show this problem. > > There are two main databases on this cluster, both using logging. One is used to accumulate some stats on our systen. > > The other is a slimmed-down version of our production database, which gets recreated hourly by a shell script which pulls data from remote servers, does a pg_dump of the resulting 3 gig database, and then drops it. > > I posted a message about ths a few days and got no responses. I am hoping for better luck this time as this is a serious issue,not relayed t vacuuming or routine admin tasks which may or may not be happening. > > Thanks for any help / advice / things to look for. > > Greg > > a few details: > db11:5432=# select version(); > version > -------------------------------------------------------------------------------------------------------------- > PostgreSQL 9.1.3 on x86_64-unknown-linux-gnu, compiled by gcc-4.4.real (Ubuntu 4.4.3-4ubuntu5) 4.4.3, 64-bit > > Says one of our sysads: > "These are single disk systems. single no > n-raid sata. Using xfs as the filesystem like the rest of the dbs." > >