X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 09C4CD1C977 for ; Wed, 23 Jun 2004 12:50:53 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 06096-07 for ; Wed, 23 Jun 2004 15:50:44 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id B6A77D1BCA7 for ; Wed, 23 Jun 2004 12:50:43 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i5NFodlr002984; Wed, 23 Jun 2004 11:50:39 -0400 (EDT) To: juanmime@ono.com Cc: pgsql-admin@postgresql.org Subject: Re: Asunto: Re: Problems restoring a DB with oids In-reply-to: <40D794F2000011E9@mta02.ono.com> References: <40D794F2000011E9@mta02.ono.com> Comments: In-reply-to juanmime@ono.com message dated "Wed, 23 Jun 2004 13:43:25 +0200" Date: Wed, 23 Jun 2004 11:50:39 -0400 Message-ID: <2983.1088005839@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/309 X-Sequence-Number: 13969 juanmime@ono.com writes: > Here is the solution to the problem: > First: We have to restore (only) the structure (schema) of the database > pg_restore -Ft -v -s db.tar -d database_name -U postgres -S postgres --disable-triggers > Second: Restore the datas > pg_restore -Ft -v -a db.tar -d database_name -U postgres -S postgres --disable-triggers [ scratches head... ] Definitely seems that there is a bug in there somewhere, if you have to do it that way. I'll take a look later ... regards, tom lane