Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map - Mailing list pgsql-sql

From Tom Lane
Subject Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map
Date
Msg-id 32161.1448402563@sss.pgh.pa.us
Whole thread Raw
In response to Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map  (Sribeiro <info@simetriastudio.com>)
Responses Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map  (Sribeiro <info@simetriastudio.com>)
List pgsql-sql
Sribeiro <info@simetriastudio.com> writes:
> Anyone has any idea what i need to do fix this issue?

You don't have an up-to-date backup, eh?

You might be able to fix this by doing a fresh initdb (targeting some
other location for the data directory, of course, but being careful
to use the exact same Postgres version) and then copying the
global/pg_filenode.map file out of that data directory and into your
broken one.  This would only work if you've never done a VACUUM FULL on
any of the shared catalogs in the existing data directory, so it's far
from guaranteed to work; but it's worth a try.

BTW, before any sort of manual data-directory surgery like this, it
would be a wise idea to make a backup copy of the entire data directory
file tree, e.g. with tar.  That way you can at least get back to where
you were if you break it worse.  Though I'm afraid you might end up
having to write off this installation as a learning experience :-(
        regards, tom lane



pgsql-sql by date:

Previous
From: Sribeiro
Date:
Subject: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map
Next
From: Alvaro Herrera
Date:
Subject: Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map