RE: Postgresql Query - Mailing list pgsql-bugs

From Bansal, Abhishek (Abhishek)
Subject RE: Postgresql Query
Date
Msg-id SN6PR1501MB2160010211B7351F0316501EFFA80@SN6PR1501MB2160.namprd15.prod.outlook.com
Whole thread Raw
In response to Re: Postgresql Query  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-bugs

Hi, Merlin,

Thank you for the reply

 

When files are emptied then it caused the outage for other servers using this server as a administration. The files were emptied because the disk space was keep increasing due so we emptied these files which eventually reduced the disk size however it caused another issues

Below is the directory where the files are emptied

/var/lib/pgsql/data/base

 

Abhishek

 

-----Original Message-----
From: Merlin Moncure <mmoncure@gmail.com>
Sent: Monday, August 19, 2019 7:09 PM
To: Bansal, Abhishek (Abhishek) <bansal7@avaya.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Postgresql Query

 

On Mon, Aug 19, 2019 at 2:15 AM Bansal, Abhishek (Abhishek) <bansal7@avaya.com> wrote:

> Hello, Team,

> Am running into a hard situation where few files are emptied with the below directory  of the PostgreSQL.

> The files marked as red are emptied which caused server behaving very bad, could you please let us know if there is any way we can retrieve these emptied files?

 

The data is probably gone.  It's possible some of all may still reside in the underlying disks depending how it was deleted and how much disk activity has occurred since the deletion event but the restoration process would be very complex with low chance of recovery.

 

If the database is allowing queries, Inside of the system catalogs, you can figure out which tables those files are attached to; it looks like two tables were impacted.  The number before the period can be matched against pg_class.relfilenode.  Once you've identified the tables, you need to restore them from backup and get the database back in shape assuming you can't or don't want to do a full database

restore from backup.    What happens so that he files were emptied?

 

merlin

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #15961: psql should be able to read password from stdin
Next
From: Thomas Kellerer
Date:
Subject: Re: BUG #15961: psql should be able to read password from stdin