Re: pg_restore problems - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: pg_restore problems
Date
Msg-id 20060828125007.GE12554@svana.org
Whole thread Raw
In response to pg_restore problems  (Bobby Gontarski <Gontarski@seznam.cz>)
Responses Re: pg_restore problems  ("chris preston" <chris@thetrafalgartravel.com>)
List pgsql-general
On Mon, Aug 28, 2006 at 02:38:07PM +0200, Bobby Gontarski wrote:
> I do:
> pg_dump -Ft mydb > mydb.tar
> pg_restore -d newdb mydb.tar
> and I get tuns of errors. Like:
> pg_restore: [archiv?? (db)] could not execute query: ERROR: relation "pg_ts_cfg map" already exists

<Snip>

Normally you restore onto a system that doesn't have the database
already. Obviously if you try to do that you'll get messages saying the
tables already exist.

You can ask for pg_restore to drop the tables before restoring them,
but for obvious reasons this is not the default.

Have anice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: optimising UNION performance
Next
From: Rafal Pietrak
Date:
Subject: Re: optimising UNION performance