Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: pg_dump



Marc Hanisch wrote:
Hallo,

ich habe das Problem, dass wir einen Dump einer sehr umfangreichen Datenbank anfertigen wollen. Nicht nur, dass pg_dump die Objekte nicht in der richtigen Reihenfolge erstellt, es werden auch ab und zu Sequenzen vergessen.

Bei kleineren Dumps korrigiert man das schnell noch per Hand, bei großen Dumps ist das allerdings fast unmöglich. Gibt es eine andere, zuverlässigere Methode?

Im 7.2'er Manual stand übrigens noch folgenden:


        22.1.4. Caveats

    pg_dump (and by implication pg_dumpall) has a few limitations which
    stem from the difficulty of reconstructing certain information from
    the system catalogs.

    Specifically, the order in which pg_dump writes the objects is not
    very sophisticated. This can lead to problems for example when
    functions are used as column default values. The only answer is to
    manually reorder the dump. If you created circular dependencies in
    your schema then you will have more work to do.

    For reasons of backward compatibility, pg_dump does not dump large
    objects by default. To dump large objects you must use either the
    custom or the TAR output format, and use the -b option in pg_dump.
    See the reference pages for details. The directory contrib/pg_dumplo
    of the PostgreSQL source tree also contains a program that can dump
    large objects.

    Please familiarize yourself with the pg_dump reference page.


Dieser Abschnitt wurde im aktuellen Manual entfernt, die Probleme existieren jedoch auch bei PostgreSQL 8.2.

dieser Abschnitt wurde entfernt weil alle bekannten Problem mit inkorrekten Dumpreihenfolge und Dependencies mit 8.0 gelöst wurden.
Um das zu verifizieren benötigen wir wohl einen reproduzierbaren Testfall.
Ein Ausnahme wäre es wenn du getrennte Schema und Datendumps verwendest - das wird IMMER zu solchen Probleme führen.


Stefan



  • References:

Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group