pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: John M. Layman <jml@frijid.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2
Date: Mon, 21 Apr 2003 22:14:07 -0400
Message-ID: <19017.1050977647@sss.pgh.pa.us> (raw)
In-Reply-To: <001d01c3083e$e4f26030$0400a8c0@frijid.net>
References: <000801c307c8$3950dc00$0400a8c0@frijid.net>
	<001d01c3083e$e4f26030$0400a8c0@frijid.net>

"John M. Layman" <jml@frijid.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




view thread (8+ messages)  latest in thread

Message-ID: <19017.1050977647@sss.pgh.pa.us>
Permalink:  ../19017.1050977647@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19017.1050977647@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, jml@frijid.net
  Subject: Re: trouble migrating large objects from 7.1.3 to 7.3.2
  In-Reply-To: <19017.1050977647@sss.pgh.pa.us>
  References: <000801c307c8$3950dc00$0400a8c0@frijid.net> <001d01c3083e$e4f26030$0400a8c0@frijid.net> <19017.1050977647@sss.pgh.pa.us>

* 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