Thanks to pg_upgrade,. we'll reclaim 1.4T of total disk !!

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Thanks to pg_upgrade,. we'll reclaim 1.4T of total disk !!
Date: 2016-08-15 17:36:46
Message-ID: 86a8gerl1t.fsf@jerry.enova.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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(dot)consulting(at)comcast(dot)net
p: 312.241.7800

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2016-08-15 19:52:30 Re: Thanks to pg_upgrade,. we'll reclaim 1.4T of total disk !!
Previous Message Ondřej Světlík 2016-08-14 19:23:02 Re: why my sounex does not work?