X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D33E5474E42 for ; Mon, 21 Apr 2003 01:39:07 -0400 (EDT) Received: from frijid.net (h00095b0c6e03.ne.client2.attbi.com [24.218.120.196]) by postgresql.org (Postfix) with ESMTP id DE38C474E42 for ; Mon, 21 Apr 2003 01:38:35 -0400 (EDT) Received: from earth (h00095b0c6e03.ne.client2.attbi.com [24.218.120.196]) by frijid.net (8.12.9/8.12.7) with SMTP id h3L5Z9gg015458; Mon, 21 Apr 2003 01:35:25 -0400 (EDT) Message-ID: <000801c307c8$3950dc00$0400a8c0@frijid.net> From: "John M. Layman" To: Cc: "John M. Layman" Subject: trouble migrating large objects from 7.1.3 to 7.3.2 Date: Mon, 21 Apr 2003 01:38:11 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C307A6.AB8854F0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Status: No, hits=-2.4 required=5.0 tests=BAYES_20,HTML_30_40 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/307 X-Sequence-Number: 8462 This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C307A6.AB8854F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi - I'm trying to migrate a database with large objects from 7.1.3 to 7.3.= 2 & have so far been unsuccessful. I'm running both 7.1.3 & 7.3.2 on the s= ame machine (running Slackware Linux 8.1) and I'm using the following comma= nd to migrate the data: pg_dump -p 6543 -b -Ft -v -o dbase | pg_restore -p 5432 -Ft -v -o -d dbase The above command causes pg_restore to fail with the following error: pg_restore: [tar archiver] could not find header for file 37.dat in tar arc= hive If I omit the -o options, the dump & restore seem to work, but the OID's ar= e incorrect & cannot be referenced. I know the data is there because the s= ize of the new database on disc is roughly the same as the old database, bu= t I cannot reference any of the data in the OID fields (all other fields ar= e okay). All the values in the new OID fields increase by two, rather than= represent the actual size of the data in the field. I have noticed that i= f I use psql to view the OID fields while the data is migrating, the number= s look correct right up until the end. It seems that during the last phase= of pg_restore, the OID numbers get reset to some sequence that just increa= ses by two for every OID. Here's a sample of what is in the OID column of = both the old & new databases: old new 26916 17034 29118 17036 30787 17038 33030 17040 36042 17042 The same problem occurs whether I pipe the output from pg_dump to pg_restor= e or use an intermediate file. I've also tried using pg_dumplo & get the s= ame results (no error, just OID's whose value increase by two). I've seen messages in the archive from other people with the same problem, = but no answers were given. Any ideas? Thanks. John Layman ------=_NextPart_000_0005_01C307A6.AB8854F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi - I'm trying to migrate a database with= large=20 objects from 7.1.3 to 7.3.2 & have so far been unsuccessful.  I'm= =20 running both 7.1.3 & 7.3.2 on the same machine (running Slackware Linux= =20 8.1) and I'm using the following command to migrate the data:
 
pg_dump -p 6543 -b -Ft -v -o dbase | pg_re= store -p=20 5432 -Ft -v -o -d dbase
 
The above command causes pg_restore to fai= l with=20 the following error:
 
pg_restore: [tar archiver] could not find = header=20 for file 37.dat in tar archive
 
If I omit the -o options, the dump & r= estore=20 seem to work, but the OID's are incorrect & cannot be=20 referenced.  I know the data is there because the size of th= e new=20 database on disc is roughly the same as the old database, but I cannot=20 reference any of the data in the OID fields (all other fields are=20 okay).  All the values in the new OID fields increase by two, rather t= han=20 represent the actual size of the data in the field.  I have noticed th= at if=20 I use psql to view the OID fields while the data is migrating, the numbers = look=20 correct right up until the end.  It seems that during the last ph= ase=20 of pg_restore, the OID numbers get reset to some sequence that just=20 increases by two for every OID.  Here's a sample of what is in th= e OID=20 column of both the old & new databases:
 
 =20 old          =20  new
 
26916      &= nbsp;=20 17034
29118      &= nbsp;=20 17036
30787      &= nbsp;=20 17038
33030      &= nbsp;=20 17040
36042      &= nbsp;=20 17042
 
The same problem occurs whether I pip= e the=20 output from pg_dump to pg_restore or use an intermediate file.  I've a= lso=20 tried using pg_dumplo & get the same results (no error, just OID's whos= e=20 value increase by two).
 
I've seen messages in the archive from oth= er people=20 with the same problem, but no answers were given.
 
Any ideas?
 
Thanks.
 
 
       =20                = =20                = John=20 Layman
 
 
 
 
------=_NextPart_000_0005_01C307A6.AB8854F0--