Re: trouble migrating large objects from 7.1.3 to 7.3.2

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "John M(dot) Layman" <jml(at)frijid(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2
Date: 2003-04-22 02:14:07
Message-ID: 19017.1050977647@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"John M. Layman" <jml(at)frijid(dot)net> writes:
> I'm using the following command to migrate the data:

> pg_dump -p 6543 -b -Ft -v -o dbase | pg_restore -p 5432 -Ft -v -o -d dbase

The tar-archive code seems to have some bugs in it :-(. I will look at
that, but the primary problem you are going to face here is that
pg_restore needs to seek in the dump file to implement this operation,
and it can't seek a pipe.

I think you will need to (a) use -Fc not -Ft, and (b) write the dump to
a temp file that pg_restore reads as a separate operation.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message John M. Layman 2003-04-22 04:22:42 Re: trouble migrating large objects from 7.1.3 to 7.3.2
Previous Message John Smith 2003-04-22 00:02:43 upgrade problems