From: | Jamie Koceniak <jkoceniak(at)mediamath(dot)com> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #12050: Orphaned base files |
Date: | 2015-01-21 06:20:13 |
Message-ID: | 84CE67AB46ACDA41B18094177DD0853D2E4C2D@ORD2MBX04C.mex05.mlsrvr.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi Michael,
Thanks for the response. Before I remove those files, I had a couple more questions.
Does a Postgres system file map to a single pg_class record and represent a single table in Postgres?
In other words, can a PG system file share data across more than 1 table?
i.e PG file -> postgres postgres 1073741824 Nov 11 01:56 2602351127
Is it a correct assumption that filename 2602351127 should equal pg_relation_filenode(oid) within pg_class?
I know there can be 2602351127.1, 2602351127.2 files as well.
2602351127 is missing in pg_class in my case.
It would be a disaster to remove the file thinking it was a table that was dropped only to find out some other table has data in that file.
What I am guessing happened here is the table was somehow dropped from system tables but not the file system.
Thanks!
-----Original Message-----
From: Michael Paquier [mailto:michael(dot)paquier(at)gmail(dot)com]
Sent: Tuesday, January 20, 2015 6:59 PM
To: Jamie Koceniak
Cc: Tom Lane; pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] BUG #12050: Orphaned base files
On Tue, Jan 20, 2015 at 11:55 AM, Jamie Koceniak <jkoceniak(at)mediamath(dot)com> wrote:
> Is it safe to remove the files /postgresql/9.1/main/base/31858 directory?
The general rule is usually the following if you do not want to corrupt your system: do not mess up manually with those files and let the system manage it. Be sure to at least take file-level backup if you go down this dangerous road.
--
Michael
From | Date | Subject | |
---|---|---|---|
Next Message | davividal | 2015-01-21 13:40:50 | BUG #12617: DETAIL: Could not read from file "pg_subtrans/06F8" at offset 90112: Success. |
Previous Message | Michael Paquier | 2015-01-21 02:58:53 | Re: BUG #12050: Orphaned base files |