Re: pg_restore problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jules(dot)alberts(at)arbodienst-limburg(dot)nl
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: pg_restore problem
Date: 2002-08-14 15:13:44
Message-ID: 8436.1029338024@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

"Jules Alberts" <jules(dot)alberts(at)arbodienst-limburg(dot)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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message paul butler 2002-08-14 18:03:46 Re: disappearing tables
Previous Message Tom Lane 2002-08-14 15:04:27 Re: disappearing tables