Re: Anyone working on pg_dump dependency ordering? - Mailing list pgsql-hackers

From ow
Subject Re: Anyone working on pg_dump dependency ordering?
Date
Msg-id 20031124021157.72911.qmail@web21402.mail.yahoo.com
Whole thread Raw
In response to Re: Anyone working on pg_dump dependency ordering?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> FK, primary, and unique constraints are already split out from the
> CREATE TABLE for performance reasons.  We could think about folding them
> back in in a schema-only dump, but in a full dump I don't think it's
> negotiable --- you really want to load the table data before you install
> these constraints.

IMHO, not only data need to loaded before FK constraints are created but also
there has got to be a feature to allow creation of an FK constraint WITHOUT
doing the verification that all loaded/existing records satisfy the FK
constraint. The ability to create a FK constraint without verification of
existing records should exist by itself (maybe only to superuser) and also as
an option in pg_restore. 

More details:
http://archives.postgresql.org/pgsql-admin/2003-11/msg00308.php
http://archives.postgresql.org/pgsql-admin/2003-11/msg00323.php


Thanks







__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Executable files in CVS
Next
From: "Marc G. Fournier"
Date:
Subject: Re: Executable files in CVS