From: John R Pierce <pierce@hogranch.com>
To: Net Tree Inc. <nettreeinc@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: how do I do dump and restore without bugging with constraint?
Date: Mon, 22 Feb 2010 21:09:56 -0800
Message-ID: <4B836324.7090604@hogranch.com> (raw)
In-Reply-To: <bd9689741002222050r1b782543rad955f64e46630ce@mail.gmail.com>
References: <bd9689741002222050r1b782543rad955f64e46630ce@mail.gmail.com>
Net Tree Inc. wrote:
> Hi all,
>
> I am dumping both schema and data from old database to new one. The
> new database schema is somehow contain slightly different schema then
> the old one. When I do restore it shown alot errors related with
> constraints. How can I dump and to restore from old to new without
> dealing with constraint and just forces data dump to where it suppose
> to belong?
>
>
>
>
if you're dumping the schema and the data, you should be restoring into
an empty database, not into an existing database.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: pierce@hogranch.com, nettreeinc@gmail.com, pgsql-general@postgresql.org
Subject: Re: how do I do dump and restore without bugging with constraint?
In-Reply-To: <4B836324.7090604@hogranch.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox