Craig Ringer <[EMAIL PROTECTED]> writes: > IIRC a patch was circulating (maybe applied to 8.4?) that tries to map > foreign-key relationships and where possible dump data in dependency > order so that data-only dumps without circular foreign key references > will restore correctly with no special user action.
Yeah. Historically pg_dump has not worried about foreign keys at all during data-only dumps. As of CVS HEAD there is some code in there that will sort the tables according to foreign key constraints, although it is possible to have circular constraints or self-referential constraints that defeat this. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general