Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id BBA4C47657F for ; Wed, 27 Nov 2002 11:48:51 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 71FDD476537 for ; Wed, 27 Nov 2002 11:47:37 -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 gARGghsX018200; Wed, 27 Nov 2002 11:42:43 -0500 (EST) To: nickf@ontko.com Cc: "Oliver Elphick" , "pgsql-admin" Subject: Re: pg_restore error: function plpgsql_call_handleralready exists with same argument types In-reply-to: References: Comments: In-reply-to "Nick Fankhauser" message dated "Wed, 27 Nov 2002 09:28:51 -0500" Date: Wed, 27 Nov 2002 11:42:43 -0500 Message-ID: <18199.1038415363@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/283 X-Sequence-Number: 6471 "Nick Fankhauser" writes: > We've never touched template1, but just to make sure, I tried using > template0 to ensure an empty DB with the same results: > nickf@morgai:~$ createdb -D PG_ALPHA -T template0 test > CREATE DATABASE > nickf@morgai:~$ pg_restore -dalpha test.dump.tar > pg_restore: [archiver (db)] could not execute query: ERROR: function > plpgsql_call_handler already exists with same argument types > nickf@morgai:~$ Er, it looks like you created an empty 'test' and then tried (again) to restore into the not-so-empty 'alpha'. regards, tom lane