pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Condor <condor@stz-bg.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: Question about PG_CONTROL_VERSION 1
Date: Fri, 16 Apr 2021 14:19:10 +0300
Message-ID: <4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com> (raw)
In-Reply-To: <3489436.1618411260@sss.pgh.pa.us>
References: <53e38022d2b31fafe44750fac5049d80@stz-bg.com>
	<3489436.1618411260@sss.pgh.pa.us>

On 14-04-2021 17:41, Tom Lane wrote:
> Condor <condor@stz-bg.com> 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





view thread (3+ messages)

Message-ID: <4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com>
Permalink:  ../4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com/
Also on:    postgresql.org/message-id/4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: condor@stz-bg.com, tgl@sss.pgh.pa.us
  Subject: Re: Question about PG_CONTROL_VERSION 1
  In-Reply-To: <4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com>
  References: <53e38022d2b31fafe44750fac5049d80@stz-bg.com> <3489436.1618411260@sss.pgh.pa.us> <4c599bdb44f9bdd1a431a5cc908ca93e@stz-bg.com>

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

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