Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 5DF594769D9 for ; Mon, 2 Dec 2002 15:05:33 -0500 (EST) Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 140FF476AFE for ; Mon, 2 Dec 2002 14:53:48 -0500 (EST) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.12.6/8.12.6/Debian-6Woody) with SMTP id gB2Jrgpq010516; Mon, 2 Dec 2002 14:53:42 -0500 Reply-To: From: "Nick Fankhauser" To: "Tom Lane" Cc: "Bruce Momjian" , "Oliver Elphick" , "pgsql-admin" Subject: Re: pg_restore error: function plpgsql_call_handler already exists with same argument types Date: Mon, 2 Dec 2002 14:49:45 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-Reply-To: <18517.1038842570@sss.pgh.pa.us> X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/11 X-Sequence-Number: 6506 > You could check this by running pg_restore with query logging > turned on, to see what commands it's actually issuing -- or just do > "pg_restore -s" into a text file and eyeball the generated script. I did this, and there is a view created before the table it refers to. > There are a lot of situations where pg_dump fails to pick a safe reload > order at the moment (that's why pg_restore has that wild and woolly set > of options for manual adjustment of the reload order). So... it looks like my best option at this point is to use the -l switch to create an archive list, reorder the list as needed, and then invoke pg_restore with the -L switch. The DB is pretty stable, so this wouldn't be too painful, but it seems like given this limitation, a person with room to spare might want to do both an older style test dump of the whole DB and an archive format dump to cover both wholesale and piecemeal recovery scenarios in a convenient way. Is this considered a bug, or a generally accepted limitation? -NF