pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: nickf@ontko.com
Cc: Bruce Momjian <pgman@candle.pha.pa.us>
Cc: Oliver Elphick <olly@lfix.co.uk>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_restore error: function plpgsql_call_handler already exists with same argument types
Date: Mon, 02 Dec 2002 10:22:50 -0500
Message-ID: <18517.1038842570@sss.pgh.pa.us> (raw)
In-Reply-To: <NEBBLAAHGLEEPCGOBHDGEEGLGEAA.nickf@ontko.com>
References: <NEBBLAAHGLEEPCGOBHDGEEGLGEAA.nickf@ontko.com>

"Nick Fankhauser" <nickf@ontko.com> 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



view thread (11+ messages)  latest in thread

Message-ID: <18517.1038842570@sss.pgh.pa.us>
Permalink:  ../18517.1038842570@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18517.1038842570@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, nickf@ontko.com, pgman@candle.pha.pa.us, olly@lfix.co.uk
  Subject: Re: pg_restore error: function plpgsql_call_handler already exists with same argument types
  In-Reply-To: <18517.1038842570@sss.pgh.pa.us>
  References: <NEBBLAAHGLEEPCGOBHDGEEGLGEAA.nickf@ontko.com> <18517.1038842570@sss.pgh.pa.us>

* 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