Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a1Lgj-00031u-8J for pgsql-sql@arkaria.postgresql.org; Tue, 24 Nov 2015 22:03:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a1Lgi-0001q5-Pr for pgsql-sql@arkaria.postgresql.org; Tue, 24 Nov 2015 22:03:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a1Lfk-0000j1-GI for pgsql-sql@postgresql.org; Tue, 24 Nov 2015 22:02:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a1Lfh-0007ON-Sy for pgsql-sql@postgresql.org; Tue, 24 Nov 2015 22:02:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tAOM2haG032162; Tue, 24 Nov 2015 17:02:43 -0500 From: Tom Lane To: Sribeiro cc: pgsql-sql@postgresql.org Subject: Re: Re: ERROR while creating new user - could not open relation mapping file global/pg_filenode.map 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> Comments: In-reply-to Sribeiro message dated "Tue, 24 Nov 2015 10:27:52 -0700" Date: Tue, 24 Nov 2015 17:02:43 -0500 Message-ID: <32161.1448402563@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Sribeiro 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