From: Chad Wagner <chad.wagner@gmail.com>
To: ABC <marblerock26@yahoo.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Can I copy data file and use it with other version of Postgresql
Date: Sun, 21 Jan 2007 09:01:53 -0500
Message-ID: <81961ff50701210601l1bebca03jbc069e47c942910f@mail.gmail.com> (raw)
In-Reply-To: <627445.72610.qm@web61213.mail.yahoo.com>
References: <627445.72610.qm@web61213.mail.yahoo.com>
On 1/21/07, ABC <marblerock26@yahoo.com> wrote:
>
> We are facing a probelm and its very urgent to sort it out. Please Help.
> The database server unexpectedly shutdown down due to power failure. On
> reboot, Postgresql server fails to start giving following Error:
>
> ----------------------------------------------------------------------------------------------------------
> LOG: could not create IPv6 socket: Address family not supported by
> protocol
> FATAL: database files are incompatible with server
> DETAIL: The database cluster was initialized with PG_CONTROL_VERSION 0,
> but the server was compiled with PG_CONTROL_VERSION 72.
> HINT: It looks like you need to initdb.
>
> ----------------------------------------------------------------------------------------------------------
>
> we are using Mandrake Linux 9.1 and two version of Postgresql
> Version-7.4.2 and Postgresql Version-7.3.2 is installed
> The Data directory is initialised with postgresql-7.4.2.
> Postgresql -7.3.2 is not used .Postgresql-7.4.2 is used for managing
> Postgres Server.
>
> Can I copy the Data Files and use tht Data with other Version of
> Postgresql ??.
>
Not in this case, you have to dump and restore. You can *usually* take the
data files from "patch" releases, say 8.2.0 to 8.2.1, but minor releases
such as 8.1 to 8.2 often do not work because of changes in data layouts,
pg_catalog changes, etc. It looks like your original data was on 7.2, best
bet is to build a 7.2 server, start up, dump and then restore to the new
server.
--
Chad
http://www.postgresqlforums.com/
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-admin@postgresql.org
Cc: chad.wagner@gmail.com, marblerock26@yahoo.com
Subject: Re: Can I copy data file and use it with other version of Postgresql
In-Reply-To: <81961ff50701210601l1bebca03jbc069e47c942910f@mail.gmail.com>
References: <627445.72610.qm@web61213.mail.yahoo.com> <81961ff50701210601l1bebca03jbc069e47c942910f@mail.gmail.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