Re: by mistake dropped physical file dropped for one table.

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Rambabu V <ram(dot)wissen(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: by mistake dropped physical file dropped for one table.
Date: 2018-03-06 13:21:24
Message-ID: 20180306132124.GL2416@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Greetings,

* Rambabu V (ram(dot)wissen(at)gmail(dot)com) wrote:
> by mistake one physical file dropped for one of our table, as we do-not
> have backup for this table we are getting below error.
>
> ERROR: could not open file "base/12669/16394": No such file or directory
>
> please help us to recover the table.

You're not likely able to recover that table. To do so would require
completely stopping the system immediately and attempting to perform
filesystem maniuplation to "undelete" the file, or pull back chunks from
the filesystem which contain pieces of the file and attempting to
reconstruct it.

If you've been keeping all WAL since the beginning of the cluster, it's
possible you could recover that way, but you claim to not have any
backups, so I'm guessing that's pretty unlikely.

Thanks!

Stephen

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Stephen Frost 2018-03-06 13:24:25 Re: need meta data table/command to find query log
Previous Message Tomas Vondra 2018-03-06 11:46:15 Re: Please help