Re: pg_restore problem - Mailing list pgsql-novice

From Tom Lane
Subject Re: pg_restore problem
Date
Msg-id 8436.1029338024@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_restore problem  ("Jules Alberts" <jules.alberts@arbodienst-limburg.nl>)
Responses Re: pg_restore problem
List pgsql-novice
"Jules Alberts" <jules.alberts@arbodienst-limburg.nl> writes:
> BTW in between I do a dropdb mydb

You probably defined plpgsql in template1, so that when you do "createdb
mydb" there's already a plpgsql definition in mydb.  This confuses
pg_restore, which is expecting to restore into a virgin database.
Try "createdb -T template0 mydb" to make a database with no local
additions, and then restore into that.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: disappearing tables
Next
From: Tom Ansley
Date:
Subject: Linking two tables from different databases