pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: fburgess@radiantblue.com <fburgess@radiantblue.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: 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: Fri, 1 Mar 2013 08:00:30 -0800 (PST)
Message-ID: <1362153630.65740.YahooMailNeo@web162902.mail.bf1.yahoo.com> (raw)
In-Reply-To: <20130301082031.5a830134ae84016b0174832fdc1a3173.c8e37496f5.wbe@email11.secureserver.net>
References: <20130301082031.5a830134ae84016b0174832fdc1a3173.c8e37496f5.wbe@email11.secureserver.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

"fburgess@radiantblue.com" <fburgess@radiantblue.com> wrote:

> We did use pg_upgrade with the hard link option. We are not sure
> if we ran the cleanup script.

> Can we run this script now, even though its month's after we did
> the upgrade?

> Everything in the .../19177 directories represent data files
> migrated over form postgres 8.4.3.  All new files get placed into
> the .../PG_9.1_201105231/16411 directories.

> The vast majority of the "orphan" files are from the
> /opt/PostgreSQL/9.1/data/user_data/19177  directory.

I don't have any reason to expect that you *can't* run the script
at this point; but being a cautious person, I would do this at a
point where I was confident I could recover from a backup, and I
would read through the scripts carefully before applying them.

What you want to be really careful that you *don't* do is to modify
or truncate any of the hard-linked files, as they are quite likely
to still be just another name for the same file that is in use for
production under the newer version.  You want to simply remove the
older directory entry pointing to the file.

http://www.linfo.org/hard_link.html

-- 
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



view thread (11+ messages)  latest in thread

Message-ID: <1362153630.65740.YahooMailNeo@web162902.mail.bf1.yahoo.com>
Permalink:  ../1362153630.65740.YahooMailNeo@web162902.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1362153630.65740.YahooMailNeo@web162902.mail.bf1.yahoo.com

 · 

reply

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, andres@2ndquadrant.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: <1362153630.65740.YahooMailNeo@web162902.mail.bf1.yahoo.com>
  References: <20130301082031.5a830134ae84016b0174832fdc1a3173.c8e37496f5.wbe@email11.secureserver.net> <1362153630.65740.YahooMailNeo@web162902.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