pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Oliver Elphick <olly@lfix.co.uk>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_restore error: function plpgsql_call_handleralready exists with same argument types
Date: Wed, 27 Nov 2002 09:28:51 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGEEPMGDAA.nickf@ontko.com> (raw)
In-Reply-To: <1038405650.13298.85.camel@linda.lfix.co.uk>

Oliver-

Thanks for the idea. Unfortunately, it still won't go.

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:~$

I'm a bit surprised about this one, because we're running a plain 7.2
(debian package) installation & it seems as if this is a standard sort of
operation that other people would be using often.

-Nick


> It sounds as though you are trying to restore an item which is already
> in the database.  Perhaps this snippet from the pg_restore man page may
> be relevent:
>
>         If your installation has any local additions to the template1
>         database, be careful to load the output of pg_restore into a
>         truly empty database; otherwise you are likely to get errors due
>         to duplicate definitions of the added objects. To make an  empty
>         database without any local additions, copy from template0 not
>         template1, for example:
>
>                CREATE DATABASE foo WITH TEMPLATE = template0;




view thread (11+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGEEPMGDAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGEEPMGDAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGEEPMGDAA.nickf@ontko.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: nickf@ontko.com, olly@lfix.co.uk
  Subject: Re: pg_restore error: function plpgsql_call_handleralready exists with same argument types
  In-Reply-To: <NEBBLAAHGLEEPCGOBHDGEEPMGDAA.nickf@ontko.com>
  References: <1038405650.13298.85.camel@linda.lfix.co.uk> <NEBBLAAHGLEEPCGOBHDGEEPMGDAA.nickf@ontko.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox