Asunto: Re: Problems restoring a DB with oids - Mailing list pgsql-admin

From juanmime@ono.com
Subject Asunto: Re: Problems restoring a DB with oids
Date
Msg-id 40D794F2000011E9@mta02.ono.com
Whole thread Raw
In response to Re: Problems restoring a DB with oids  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Asunto: Re: Problems restoring a DB with oids
List pgsql-admin
Thanks you very much Tom,

Here is the solution to the problem:

First: We have to restore (only) the structure (schema) of the database
pg_restore -Ft -v -s db.tar -d database_name -U postgres -S postgres --disable-triggers

Second: Restore the datas
pg_restore -Ft -v -a db.tar -d database_name -U postgres -S postgres --disable-triggers

I think, that in the first step, we can drop "-S postgres --disable-triggers"
options.

Thanks.


pgsql-admin by date:

Previous
From: "Eduardo S. Fontanetti"
Date:
Subject: Backup / Restore
Next
From: "V i s h a l Kashyap @ [Sai Hertz And Control Systems]"
Date:
Subject: Re: Backup / Restore