From: Kevin Grittner <kgrittn@ymail.com>
To: fburgess@radiantblue.com <fburgess@radiantblue.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Excessive space allocations in Postgresql 9.1.6 system files causing the file system to run out of space.
Date: Wed, 27 Feb 2013 07:55:01 -0800 (PST)
Message-ID: <1361980501.89497.YahooMailNeo@web162901.mail.bf1.yahoo.com> (raw)
In-Reply-To: <20130226103047.5a830134ae84016b0174832fdc1a3173.e8f8533f39.wbe@email11.secureserver.net>
References: <20130226103047.5a830134ae84016b0174832fdc1a3173.e8f8533f39.wbe@email11.secureserver.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"fburgess@radiantblue.com" <fburgess@radiantblue.com> wrote:
> We have a Postgres database that was recently upgraded from 8.4.3
> to 9.1.6. 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
> contained within pg_class
>
> There are 17359 data files. After running the script, there are
> 5802 data files remaining that are not listed in pg_class. Due
> to the size of the (5802) data files (~4TB), I am not comfortable
> about deleting them from the file system. Does postgres 9.1.6
> catalog every data file in pg_class? Or does it leave some data
> files off of this table? 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. 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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kgrittn@ymail.com, fburgess@radiantblue.com
Subject: Re: Excessive space allocations in Postgresql 9.1.6 system files causing the file system to run out of space.
In-Reply-To: <1361980501.89497.YahooMailNeo@web162901.mail.bf1.yahoo.com>
References: <20130226103047.5a830134ae84016b0174832fdc1a3173.e8f8533f39.wbe@email11.secureserver.net> <1361980501.89497.YahooMailNeo@web162901.mail.bf1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox