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 1lWghX-0007K3-JF for pgsql-general@arkaria.postgresql.org; Wed, 14 Apr 2021 14:41:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lWghW-0007a3-31 for pgsql-general@arkaria.postgresql.org; Wed, 14 Apr 2021 14:41:06 +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 1lWghV-0007Zw-S4 for pgsql-general@lists.postgresql.org; Wed, 14 Apr 2021 14:41:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWghS-0008Iu-Bm for pgsql-general@postgresql.org; Wed, 14 Apr 2021 14:41:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 13EEf09A3489437; Wed, 14 Apr 2021 10:41:00 -0400 From: Tom Lane To: Condor cc: pgsql-general@postgresql.org Subject: Re: Question about PG_CONTROL_VERSION 1 In-reply-to: <53e38022d2b31fafe44750fac5049d80@stz-bg.com> References: <53e38022d2b31fafe44750fac5049d80@stz-bg.com> Comments: In-reply-to Condor message dated "Wed, 14 Apr 2021 17:28:37 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3489435.1618411260.1@sss.pgh.pa.us> Date: Wed, 14 Apr 2021 10:41:00 -0400 Message-ID: <3489436.1618411260@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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