Make pg_dump --data-only try to order the table dumps so that foreign keys'
commit7d7dcac539a751b2e96c749015d359af567e14b1
authortgl <tgl>
Mon, 8 Sep 2008 15:26:23 +0000 (8 15:26 +0000)
committertgl <tgl>
Mon, 8 Sep 2008 15:26:23 +0000 (8 15:26 +0000)
treeebd86ec6b20a2634603442d11ea597cccaab1b48
parent04831e2e04f69a4f76d948a8fa239b37ac217e8b
Make pg_dump --data-only try to order the table dumps so that foreign keys'
referenced tables are dumped before the referencing tables.  This avoids
failures when the data is loaded with the FK constraints already active.
If no such ordering is possible because of circular or self-referential
constraints, print a NOTICE to warn the user about it.
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.h
src/bin/pg_dump/pg_dump_sort.c