Re: [GENERAL] Dumping/Restoring with constraints?

From: "Marco Bizzarri" <marco(dot)bizzarri(at)gmail(dot)com>
To: Postgres <pgsql-admin(at)postgresql(dot)org>
Subject: Re: [GENERAL] Dumping/Restoring with constraints?
Date: 2008-08-27 13:27:48
Message-ID: 3f0d61c40808270627ybbeb80ej2f8e1209b66c5f61@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

On Wed, Aug 27, 2008 at 3:19 PM, Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)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(at)postgresql(dot)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/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Terry Lee Tucker 2008-08-27 13:29:41 Re: Dumping/Restoring with constraints?
Previous Message Phoenix Kiula 2008-08-27 13:19:24 Dumping/Restoring with constraints?

Browse pgsql-general by date

  From Date Subject
Next Message Terry Lee Tucker 2008-08-27 13:29:41 Re: Dumping/Restoring with constraints?
Previous Message Phoenix Kiula 2008-08-27 13:19:24 Dumping/Restoring with constraints?