Re: pg_restore error: function plpgsql_call_handleralready exists with same argument types

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: nickf(at)ontko(dot)com
Cc: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>, "pgsql-admin" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_restore error: function plpgsql_call_handleralready exists with same argument types
Date: 2002-11-27 16:42:43
Message-ID: 18199.1038415363@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Nick Fankhauser" <nickf(at)ontko(dot)com> 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(at)morgai:~$ createdb -D PG_ALPHA -T template0 test
> CREATE DATABASE
> nickf(at)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(at)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message fred 2002-11-27 16:51:00 Re: CASCADE PB
Previous Message Stephan Szabo 2002-11-27 16:36:09 Re: CASCADE PB