Export/import issue/question

From: Karl Wright <kwright(at)metacarta(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Export/import issue/question
Date: 2007-06-19 15:18:42
Message-ID: 4677F3D2.6050909@metacarta.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I'm trying to move a database from postgresql 7.4 to postgresql 8.1.
Unfortunately this is not going well. This is what I did:

pg_dump --file dbsnapshot --format=t -a -b

and then I installed 8.1, and attempted the following:

pg_restore --file dbsnapshot --format=t --table=ingeststatus -a

But, I get the following error:

pg_restore: [tar archiver] could not find header for file toc.dat in tar
archive

However, a tar tf shows that toc.dat is indeed in the dbsnapshot file:

kwright(at)baetis:/common$ tar tf dbsnapshot
toc.dat
2.dat
3.dat
4.dat
5.dat
6.dat
7.dat
8.dat
9.dat
10.dat
11.dat
12.dat
13.dat
14.dat
15.dat
...

The tar is pretty large:

-rw-r--r-- 1 root root 6892524032 Jun 19 09:48 dbsnapshot

Any idea what I'm doing wrong?

Karl

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Chris Browne 2007-06-19 15:22:17 Re: [PERFORM] Postgres VS Oracle
Previous Message Mario Splivalo 2007-06-19 15:17:21 Re: Postgres8.2 - turning off BINGLOG/PARSELOG