X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 7481BD1C50C for ; Fri, 1 Aug 2003 16:40:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 55288-06 for ; Fri, 1 Aug 2003 13:39:19 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 8365BD1C4E6 for ; Fri, 1 Aug 2003 13:40:25 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h71GeJQ3016200; Fri, 1 Aug 2003 12:40:19 -0400 (EDT) To: cjwhite@cisco.com Cc: pgsql-admin@postgresql.org Subject: Re: Problem restoring large objects with pg_restore In-reply-to: <000201c35840$32156500$5c976b80@amer.cisco.com> References: <000201c35840$32156500$5c976b80@amer.cisco.com> Comments: In-reply-to "Chris White (cjwhite)" message dated "Fri, 01 Aug 2003 08:18:43 -0700" Date: Fri, 01 Aug 2003 12:40:18 -0400 Message-ID: <16199.1059756018@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/29 X-Sequence-Number: 9752 "Chris White (cjwhite)" writes: > Everything got restored, all the requested tables and all the large > objects. However, all the large objects were restored with a different > oids (some using oids of previous large objects), That's what's expected to happen. There is no way for pg_restore to force them to have the same OIDs as before. > which made all the > references to these oids in the tables incorrect. pg_restore is supposed to take care of updating references to restored large objects. Perhaps you were storing the references as the wrong datatype (not OID or LO)? Or perhaps you tried to do the restore in multiple pg_restore runs? I'm not certain, but I think pg_restore may only look at tables restored in the current run for references to update. For sure it can't fix tables you haven't restored yet. regards, tom lane