agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sribeiro <info@simetriastudio.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map
Date: Tue, 24 Nov 2015 17:02:43 -0500
Message-ID: <32161.1448402563@sss.pgh.pa.us> (raw)
In-Reply-To: <1448386072130-5874934.post@n5.nabble.com>
References: <1448307482990-5874842.post@n5.nabble.com>
	<565378B4.5080801@aklaver.com>
	<1448311158958-5874860.post@n5.nabble.com>
	<1448386072130-5874934.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql



view thread (52+ messages)  latest in thread

Message-ID: <32161.1448402563@sss.pgh.pa.us>
Permalink:  ../32161.1448402563@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32161.1448402563@sss.pgh.pa.us

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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, info@simetriastudio.com
  Subject: Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map
  In-Reply-To: <32161.1448402563@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox