Re: pg_restore and FK constraints with large dbs - Mailing list pgsql-admin

From Peter Eisentraut
Subject Re: pg_restore and FK constraints with large dbs
Date
Msg-id Pine.LNX.4.44.0311161619270.5327-100000@peter.localdomain
Whole thread Raw
In response to Re: pg_restore and FK constraints with large dbs  (ow <oneway_111@yahoo.com>)
Responses Re: pg_restore and FK constraints with large dbs
List pgsql-admin
ow writes:

> --- Peter Eisentraut <peter_e@gmx.net> wrote:
> > If you you pg_dump and dump schema and data together, then there is some
> > magic to temporarily disable foreign key constraints.  Try it out.
>
> Dunno. Don't see any magic so far. In fact, pg_restore appears to use
> internally the same SQL to verify that the validity of the FKs as "ALTER TABLE
> xxx ADD CONSTRAINT". And it's not any faster either.

Read again.  No one was talking of pg_restore.

--
Peter Eisentraut   peter_e@gmx.net


pgsql-admin by date:

Previous
From: Yuji Shinozaki
Date:
Subject: Re: compare two databases
Next
From: ow
Date:
Subject: Re: pg_restore and FK constraints with large dbs