pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nick Fankhauser <nickf@ontko.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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, 2 Dec 2002 14:49:45 -0500
Message-ID: <NEBBLAAHGLEEPCGOBHDGCEHJGEAA.nickf@ontko.com> (raw)
In-Reply-To: <18517.1038842570@sss.pgh.pa.us>



> 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.

I did this, and there is a view created before the table it refers to.


> 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).

So... it looks like my best option at this point is to use the -l switch to
create an archive list, reorder the list as needed, and then invoke
pg_restore with the -L switch.

The DB is pretty stable, so this wouldn't be too painful, but it seems like
given this limitation, a person with room to spare might want to do both an
older style test dump of the whole DB and an archive format dump to cover
both wholesale and piecemeal recovery scenarios in a convenient way.

Is this considered a bug, or a generally accepted limitation?

-NF





view thread (11+ messages)  latest in thread

Message-ID: <NEBBLAAHGLEEPCGOBHDGCEHJGEAA.nickf@ontko.com>
Permalink:  ../NEBBLAAHGLEEPCGOBHDGCEHJGEAA.nickf@ontko.com/
Also on:    postgresql.org/message-id/NEBBLAAHGLEEPCGOBHDGCEHJGEAA.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, tgl@sss.pgh.pa.us, 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: <NEBBLAAHGLEEPCGOBHDGCEHJGEAA.nickf@ontko.com>
  References: <18517.1038842570@sss.pgh.pa.us> <NEBBLAAHGLEEPCGOBHDGCEHJGEAA.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