From: Marco Bizzarri <marco.bizzarri@gmail.com>
To: Postgres <pgsql-admin@postgresql.org>
Subject: Re: [GENERAL] Dumping/Restoring with constraints?
Date: Wed, 27 Aug 2008 15:27:48 +0200
Message-ID: <3f0d61c40808270627ybbeb80ej2f8e1209b66c5f61@mail.gmail.com> (raw)
In-Reply-To: <e373d31e0808270619uba31c8eodc2c85662b85140a@mail.gmail.com>
References: <e373d31e0808270619uba31c8eodc2c85662b85140a@mail.gmail.com>
On Wed, Aug 27, 2008 at 3:19 PM, Phoenix Kiula <phoenix.kiula@gmail.com> wrote:
> Hello. I have a database dump. With data and schema, which includes
> all the constraints and rules. But it seems the pg_dumpall command
> does not copy data in such a way that foreign keys are satisfied upon
> restoring. Because tables are inter-related, importing them keep
> giving errors and eventually no data is imported. Neither pg_dumpall
> nor pg_restore seems to have a "without constraints" or "delay
> constraints check" type command. What am I missing? Thanks for any
> advice.
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
Isn't the
--disable-triggers
working for you?
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
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: marco.bizzarri@gmail.com
Subject: Re: [GENERAL] Dumping/Restoring with constraints?
In-Reply-To: <3f0d61c40808270627ybbeb80ej2f8e1209b66c5f61@mail.gmail.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