pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rahul Saha <rahul.blooming@gmail.com>
To: pgsql-admin@postgresql.org pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: [Admin] Deleting Orphan Relfilenode
Date: Mon, 16 Jul 2018 17:40:55 +0530
Message-ID: <33986830-A802-43DD-AABB-6035B37251EC@gmail.com> (raw)

Hi Experts,

Background - PG version 9.4
Running in Linux Rhel

We have a scenario where we ran Vacuum Full (2 TB Table)but due to some reason Vacuum Full failed. 

These have let almost 1 TB orphan Relfilenodes inside base directory under the concern database which does not map with pg_class. 

For example - Select * from pg_class where relfilenode = 123456. It does not return any row but those relfilenode exist inside base. 

It would be great if you can suggest how to remove those orphan files. I know definitely manually deleting is not suggested so thought to know your suggestions. 

Kind Regards,
Rahul Saha





view thread (2+ messages)  latest in thread

Message-ID: <33986830-A802-43DD-AABB-6035B37251EC@gmail.com>
Permalink:  ../33986830-A802-43DD-AABB-6035B37251EC@gmail.com/
Also on:    postgresql.org/message-id/33986830-A802-43DD-AABB-6035B37251EC@gmail.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: rahul.blooming@gmail.com
  Subject: Re: [Admin] Deleting Orphan Relfilenode
  In-Reply-To: <33986830-A802-43DD-AABB-6035B37251EC@gmail.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