OSDN Git Service

Make pg_dump --data-only try to order the table dumps so that foreign keys'
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2008 15:26:23 +0000 (15:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 8 Sep 2008 15:26:23 +0000 (15:26 +0000)
commitbc01b45ab9fc4774e0adbe971bd0fff5a17f5705
treec1f4f71feb10d35d86377fef1a9b00f21a5f7d2b
parenta0b76dc662efde6e02921c2d16e06418483b7534
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