pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <gsievers19@comcast.net>
To: pgsql-admin@postgresql.org
Subject: Thanks to pg_upgrade,. we'll reclaim 1.4T of total disk !!
Date: Mon, 15 Aug 2016 12:36:46 -0500
Message-ID: <86a8gerl1t.fsf@jerry.enova.com> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Seriously...

But I had to postpone the scheduled upgrade to investigate first.

Our big warehouse ~5TB system was trial upgraded several time using
snapshots and not till the last trial did I happen to notice that we
were about 700G short after the upgrade.

Yay!  Or huh?

Same warehouse had apparently crashed hard and left behind those 700G of
orphaned data files unbeknownst to us.

Pg_Upgrade never sees them since there is no catalog entry with a
relfilenode pointing to them and thus leaves all this junk behind during
the upgrade.

Exactly as we would like it to.

Still, the discovery was rather shocking and a couple hours of
investigation ensude to explain the matter.

Oh, and those 700G of space was actual logged table data, not temp or
UNlogged, ergo our standby system is likewise bloated by this amount.

When we do the rescheduled upgrade thus we'll be saving 1.4T. OH yeah
baby!!

FWIW

-- 
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)  latest in thread

Message-ID: <86a8gerl1t.fsf@jerry.enova.com>
Permalink:  ../86a8gerl1t.fsf@jerry.enova.com/
Also on:    postgresql.org/message-id/86a8gerl1t.fsf@jerry.enova.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: gsievers19@comcast.net
  Subject: Re: Thanks to pg_upgrade,. we'll reclaim 1.4T of total disk !!
  In-Reply-To: <86a8gerl1t.fsf@jerry.enova.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