Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C4A90475E18 for ; Mon, 2 Dec 2002 10:24:01 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E2D1E4760E3 for ; Mon, 2 Dec 2002 10:23:21 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gB2FMpps018518; Mon, 2 Dec 2002 10:22:51 -0500 (EST) To: nickf@ontko.com Cc: "Bruce Momjian" , "Oliver Elphick" , "pgsql-admin" Subject: Re: pg_restore error: function plpgsql_call_handler already exists with same argument types In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Mon, 02 Dec 2002 09:47:45 -0500" Date: Mon, 02 Dec 2002 10:22:50 -0500 Message-ID: <18517.1038842570@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/5 X-Sequence-Number: 6500 "Nick Fankhauser" writes: > It appears that in the process of creating the schema, pg_restore attempted > to create an object that required the existence of actor, which wasn't > restored yet. My conjecture is that the objects are just being created in > the wrong order. Probably. 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. 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). regards, tom lane