pg_restore problem - Mailing list pgsql-novice

From Jules Alberts
Subject pg_restore problem
Date
Msg-id 200208140954.g7E9s4uL012392@artemis.cuci.nl
Whole thread Raw
Responses Re: pg_restore problem
List pgsql-novice
Hello world,

(PostgreSQL 7.2.1-5, fully patched RedHat 7.3)

I have a db with some relations on OIDs and some BLOBs. I create a
backup with this command:

    pg_dump -Fc -o -b mydb > mydb.dump

But a restore with:

    pg_restore -dmydb -Fc mydb.dump

Gives this error:

    CREATE DATABASE
    pg_restore: connecting to database for restore
    pg_restore: executing <Init> Max OID
    pg_restore: creating FUNCTION "plpgsql_call_handler" ()
    pg_restore: [archiver (db)] could not execute query: ERROR:  function
    plpgsql_call_handler already exists with same argument types
    pg_restore: *** aborted because of error

Am I doing something wrong? TIA!

--
Jules Alberts.

pgsql-novice by date:

Previous
From: "paul butler"
Date:
Subject: disappearing tables
Next
From: "Jules Alberts"
Date:
Subject: Re: pg_restore problem