Search Postgresql Archives

Re: fine tuned database dump/reload?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Douglas McNaught <doug@xxxxxxxxxxxx> writes:
> Dan Armbrust <daniel.armbrust.list@xxxxxxxxx> writes:
>> Maybe I missed something then, because it didn't last time I tried to
>> move some data.  I had to drop my foreign keys before I could reload
>> it.

> What version was this?  Older versions definitely had some problems
> with table ordering.  In 8.0.X, the tables in the dump all get loaded
> before the FK constraints are created, and I have never seen a
> problem.

Even in current versions, you have to do a full (schema+data) dump for
it to work "right".  Data-only dumps are prone to FK problems.  This
is insoluble in the general case, though you can work around it to some
extent with the --disable-triggers option.

			regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

               http://archives.postgresql.org

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux