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 06B87D1B366 for ; Sun, 11 Jul 2004 00:05:54 -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 54788-09 for ; Sun, 11 Jul 2004 03:05:56 +0000 (GMT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 70761D1B352 for ; Sun, 11 Jul 2004 00:05:51 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i6B35n824252; Sat, 10 Jul 2004 23:05:49 -0400 (EDT) From: Bruce Momjian Message-Id: <200407110305.i6B35n824252@candle.pha.pa.us> Subject: Re: Asunto: Re: Problems restoring a DB with oids In-Reply-To: <2983.1088005839@sss.pgh.pa.us> To: Tom Lane Date: Sat, 10 Jul 2004 23:05:49 -0400 (EDT) Cc: juanmime@ono.com, pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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: 200407/131 X-Sequence-Number: 14199 Was there ever a resolution to this? --------------------------------------------------------------------------- Tom Lane wrote: > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073