Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXMVN-0007XH-SM for pgsql-general@arkaria.postgresql.org; Fri, 16 Apr 2021 11:19:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXMVM-0005ca-H3 for pgsql-general@arkaria.postgresql.org; Fri, 16 Apr 2021 11:19:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXMVM-0005a2-6N for pgsql-general@lists.postgresql.org; Fri, 16 Apr 2021 11:19:20 +0000 Received: from stz-bg.com ([46.40.123.212] helo=mail.stzbg.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXMVI-0003cy-TQ for pgsql-general@postgresql.org; Fri, 16 Apr 2021 11:19:18 +0000 Received: from www.stz-bg.com (stz-bg.com [IPv6:2a02:6800:0:99::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) (Authenticated sender: condor@stz-bg.com) by mail.stzbg.com (Postfix) with ESMTPSA id 738412E0B78; Fri, 16 Apr 2021 14:19:12 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stz-bg.com; s=mail; t=1618571952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4v1QqRHn+KWzWRGnLAXyxXuuZB1FCxAYYSpi6gKMvGM=; b=ipUTZTrN5UtlbLifS4t3fEeWsk+3vSM7tC/q741YNbP0cAgjcKUnHV78T4cWrIMF+s8lEt LYggNih7tqe5N8NErN14UR4E1ASD0LxRdNjuYIwQtf6HU+Qgr9EP66bLNl9aM44RlWsd+p XqH3RxHyrRXm2PjZWrxzPnUzYtwo4rE= MIME-Version: 1.0 Date: Fri, 16 Apr 2021 14:19:10 +0300 From: Condor To: Tom Lane Cc: pgsql-general@postgresql.org Subject: Re: Question about PG_CONTROL_VERSION 1 In-Reply-To: <3489436.1618411260@sss.pgh.pa.us> References: <53e38022d2b31fafe44750fac5049d80@stz-bg.com> <3489436.1618411260@sss.pgh.pa.us> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com> X-Sender: condor@stz-bg.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14-04-2021 17:41, Tom Lane wrote: > Condor writes: >> I try restore from old hard drive an database. The system is not >> working, so I install new server, install postgres 9.0.3 and try to >> copy >> postgresql dir to new location but I receive error: > >> 2021-04-14 11:47:04.205 UTC [10285] FATAL: database files are >> incompatible with server >> 2021-04-14 11:47:04.205 UTC [10285] DETAIL: The database cluster was >> initialized with PG_CONTROL_VERSION 1, but the server was compiled >> with >> PG_CONTROL_VERSION 903. >> 2021-04-14 11:47:04.205 UTC [10285] HINT: It looks like you need to >> initdb. > > Yeah, that's corrupt :-(. Probably if you try pg_controldata you'll > find that pg_control is a complete mess. > > regards, tom lane Hello, thank you. I resolve the issue and get my data back successful. I create a new database and check the number that new database is created and I replace only datafiles from old directory to new one. In few years back I was trying to start similar topic without success, when you have the data but indexes and/or transaction log is corrupt / broken, how to get the data back without indexes and transactions log. I export my old data. Thanks again. Regards, HS