Data migration from version 7.2.1 to 8.1.5

From: Arindam <arindam(dot)mukerjee(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Data migration from version 7.2.1 to 8.1.5
Date: 2007-02-08 15:31:49
Message-ID: d85a51ff0702080731g4320cca6nde7217de7c49bc12@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I am trying to write a script which will migrate all the data from a
particular database on version 7.2.1 and restore the same data along
with the full schema on an 8.1.5 database. The database itself will be
created and does not need to be created.

I tried dumping data in tar format using the pg_dump utility (with
version 7.2.1) and restoring it using pg_restore utility (with version
8.1.5). But on running this command:

pg_restore -d mydb -C -u <my_dump_file>

I get the following error:

pg_restore: [archiver] unsupported version (1.10) in file header

Any idea where I am going wrong.

Thanks,
Arindam

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-02-08 15:44:56 Re: Data migration from version 7.2.1 to 8.1.5
Previous Message Ged 2007-02-08 15:01:17 Re: Array OUT columns in a record returned from a function - part deux