Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAjLZ-0003rc-Us for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Feb 2013 15:55:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UAjLZ-0007U8-5U for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Feb 2013 15:55:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UAjLY-0007Tx-2e for pgsql-bugs@postgresql.org; Wed, 27 Feb 2013 15:55:08 +0000 Received: from nm9.bullet.mail.bf1.yahoo.com ([98.139.212.168]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UAjLU-0008Mb-3P for pgsql-bugs@postgresql.org; Wed, 27 Feb 2013 15:55:07 +0000 Received: from [98.139.215.141] by nm9.bullet.mail.bf1.yahoo.com with NNFMP; 27 Feb 2013 15:55:02 -0000 Received: from [98.139.212.218] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 27 Feb 2013 15:55:02 -0000 Received: from [127.0.0.1] by omp1027.mail.bf1.yahoo.com with NNFMP; 27 Feb 2013 15:55:02 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 840761.30675.bm@omp1027.mail.bf1.yahoo.com Received: (qmail 89900 invoked by uid 60001); 27 Feb 2013 15:55:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1361980502; bh=Jb+l6s9NxHpQXPTmsDnE/elQLMOJp06Yaw+JtESj1LE=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=tuzlxHofgOpzYdgxF2EqWoDwWAQnGVilVOWAukx/VO477z4M/1qkykAkK8Ool5a7nkFKqbdq5zgW8FrKTxXEWTycB98AZjI/fvwGpthFPyl1CGSMn/WHNpH9bGDMBnWJVjsYOKbXWcPQCsGMkfy1ouzvsy21cgYdlDgMjdtaRmM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=LQ1nZNZbrD2e8zLh6oM+ICTgJy9QGx+tcdUadlXzqk2pFVNva3r1GWDfsn9g9+lT8PLFQgj0UcDu9L6gIaawKICJJ+5+k0rdpS/GQi3eOfnnQfOuSsjGLv7K7LYkdl1vWvceEmgW3KyXAJ0swtbTciMPGDmwBr5KZPhthuUnKvs=; X-YMail-OSG: ML0oV5wVM1lzHNNSnZLZYqQwaGvoJeamG5Et5N8KDDMkA71 20GX8.PdkBg_Jc59pOTWz6wU.Hv6Q5rjjI8ROCw81yJAvmwwasTgxsXP67h4 SRLIMh0MqqelFJFM1700pM0DYdD1wT.WSMLjruhkTxGb2wM9Z8JqgWUl25XF 9_xF2DHejPfoxquyi6PUVwP8JfXy5COboLJHXTAOKrL5zA62QB6AxN3z_ig2 pjQRa0h56DE1DfXO5hjKdPdiOqD7il0fDOUmHd_9O1AdadFbc8LdJ73kXqxL t6FEUjRA3rLYnonGxFYADHU8bAjo4QgGoOlQ0P1X9gexpbMq8pe5xfHjUyWe V9P7Qx6twT1eZM6Af0iUaz_38sbthKqLXtMozcKvbC0D30HHyuktm_LBJiuG GQ4wWe7K4ip8b_0sfXbJEpZdaoYYiPeqVfQwLc240sAGdAssKBRSISmmgP8q 6m9iD6r0r2Q0jFsVBTDP9On6w5JoOsE56x_dvQPmiJzcRdDKfyVa16Si4q7h xZUFe99KYoxrZaaHsoiJWlqj.8AgBI4HaQMXvcUI- Received: from [76.255.18.237] by web162901.mail.bf1.yahoo.com via HTTP; Wed, 27 Feb 2013 07:55:01 PST X-Rocket-MIMEInfo: 001.001, ImZidXJnZXNzQHJhZGlhbnRibHVlLmNvbSIgPGZidXJnZXNzQHJhZGlhbnRibHVlLmNvbT4gd3JvdGU6Cgo.IFdlIGhhdmUgYSBQb3N0Z3JlcyBkYXRhYmFzZSB0aGF0IHdhcyByZWNlbnRseSB1cGdyYWRlZCBmcm9tIDguNC4zCj4gdG8gOS4xLjYuwqAgV2UgaGF2ZSBub3RpY2VkIHVudXN1YWwgZ3Jvd3RoIGluIHRoZSBkYXRhIGZpbGVzIGFuZAo.IGdlbmVyYXRlZCBhIHNjcmlwdCB0byBwZXJmb3JtIHRoZSBmb2xsb3dpbmcgYWN0aW9ucy4KCj4gMS4gUXVlcnkgcGdfY2xhc3MgZm9yIGFsbCByZWNvcmRzCj4BMAEBAQE- X-Mailer: YahooMailWebService/0.8.135.514 References: <20130226103047.5a830134ae84016b0174832fdc1a3173.e8f8533f39.wbe@email11.secureserver.net> Message-ID: <1361980501.89497.YahooMailNeo@web162901.mail.bf1.yahoo.com> Date: Wed, 27 Feb 2013 07:55:01 -0800 (PST) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: Excessive space allocations in Postgresql 9.1.6 system files causing the file system to run out of space. To: "fburgess@radiantblue.com" , "pgsql-bugs@postgresql.org" In-Reply-To: <20130226103047.5a830134ae84016b0174832fdc1a3173.e8f8533f39.wbe@email11.secureserver.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "fburgess@radiantblue.com" wrote: > We have a Postgres database that was recently upgraded from 8.4.3 > to 9.1.6.=A0 We have noticed unusual growth in the data files and > generated a script to perform the following actions. > 1. Query pg_class for all records > 2. Generate a file listing of all postgres data files > 3. Compare the two lists and eliminate all files that are >=A0=A0=A0 contained within pg_class >=20 > There are 17359 data files.=A0 After running the script, there are > 5802 data files remaining that are not listed in pg_class.=A0 Due > to the size of the (5802) data files (~4TB), I am not comfortable > about deleting them from the file system.=A0 Does postgres 9.1.6 > catalog every data file in pg_class?=A0=A0 Or does it leave some data > files off of this table?=A0 If so, how can I determine if I have > stale, unnecessary data files on my file system? Yeah, it's good to be cautious -- deleting a needed file can render your database cluster unusable.=A0 Be sure you have a good backup you can go back to if you delete the wrong thing. What directories are you looking in? For a database or tablespace directory, are you excluding all files which start with a filename you derived from pg_class and has a dot or underscore followed by more characters? -- Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs