pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedQuestion about PG_CONTROL_VERSION 1
3+ messages / 2 participants
[nested] [flat]
* Question about PG_CONTROL_VERSION 1
@ 2021-04-14 14:28 Condor <condor@stz-bg.com>
2021-04-14 14:41 ` Re: Question about PG_CONTROL_VERSION 1 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Condor @ 2021-04-14 14:28 UTC (permalink / raw)
To: pgsql-general
Hello,
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.
How I can start the database or a way to check which files are used for
database that I need it and copy only them ? Did I have a broken files
(probably) ? Is there a way to copy only needed files or some way to
export the data ?
Thanks,
HS
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Question about PG_CONTROL_VERSION 1
2021-04-14 14:28 Question about PG_CONTROL_VERSION 1 Condor <condor@stz-bg.com>
@ 2021-04-14 14:41 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-04-16 11:19 ` Re: Question about PG_CONTROL_VERSION 1 Condor <condor@stz-bg.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2021-04-14 14:41 UTC (permalink / raw)
To: Condor <condor@stz-bg.com>; +Cc: pgsql-general
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Question about PG_CONTROL_VERSION 1
2021-04-14 14:28 Question about PG_CONTROL_VERSION 1 Condor <condor@stz-bg.com>
2021-04-14 14:41 ` Re: Question about PG_CONTROL_VERSION 1 Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-04-16 11:19 ` Condor <condor@stz-bg.com>
0 siblings, 0 replies; 3+ messages in thread
From: Condor @ 2021-04-16 11:19 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
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
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2021-04-16 11:19 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 14:28 Question about PG_CONTROL_VERSION 1 Condor <condor@stz-bg.com>
2021-04-14 14:41 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-04-16 11:19 ` Condor <condor@stz-bg.com>
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