pg_dump
This is a multi-part message in MIME format.
--------------050905040004000102010108
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
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ße=
n
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.
Viele Grüße,
Marc
--------------050905040004000102010108
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor=3D"#ffffff" text=3D"#000000">
Hallo,<br>
<br>
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.<br>
<br>
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?<br>
<br>
Im 7.2'er Manual stand übrigens noch folgenden:<br>
<br>
<blockquote>
<div class=3D"SECT2">
<h2 class=3D"SECT2"><a name=3D"BACKUP-DUMP-CAVEATS">22.1.4. Caveats</a>=
</h2>
<p> <span class=3D"APPLICATION">pg_dump</span> (and by implication <spa=
n
class=3D"APPLICATION">pg_dumpall</span>)
has a few limitations which stem from the difficulty of reconstructing
certain information from the system catalogs. </p>
<p> Specifically, the order in which <span class=3D"APPLICATION">pg_dum=
p</span>
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. </p>
<p> For reasons of backward compatibility, <span class=3D"APPLICATION">=
pg_dump</span>
does not dump large objects by default.<a name=3D"AEN19077"></a> To dump
large objects you must use either the custom or the TAR output format,
and use the <tt class=3D"OPTION">-b</tt> option in <span
class=3D"APPLICATION">pg_dump</span>. See the reference pages for
details. The directory <tt class=3D"FILENAME">contrib/pg_dumplo</tt> of
the <span class=3D"PRODUCTNAME">PostgreSQL</span> source tree also
contains a program that can dump large objects. </p>
<p> Please familiarize yourself with the <span class=3D"CITEREFENTRY"><=
span
class=3D"REFENTRYTITLE">pg_dump</span></span> reference page. </p>
</div>
</blockquote>
<br>
Dieser Abschnitt wurde im aktuellen Manual entfernt, die Probleme
existieren jedoch auch bei PostgreSQL 8.2.<br>
<br>
Viele Grüße,<br>
Marc<br>
<pre class=3D"moz-signature" cols=3D"72">
</pre>
</body>
</html>
--------------050905040004000102010108--
Re: pg_dump
--On Dienstag, Juli 17, 2007 15:00:53 +0200 Marc Hanisch <hanisch [at] ateam.de>=
wrote:
> allo,
>
> 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=C3=
=9Fen
> Dumps ist das allerdings fast unm=C3=B6glich. Gibt es eine andere,
> zuverl=C3=A4ssigere Methode?
>
> Im 7.2'er Manual stand =C3=BCbrigens noch folgenden:
>
7.2 ist EOL und wird seit l=C3=A4ngerem nicht mehr supported. Upgrade mehr =
als
dringenst angeraten. Andernfalls mit Custom Dump arbeiten und dort durch
Bearbeiten der TOC die Restore-Reihenfolge beeinflussen.
[...]
>
>
> Dieser Abschnitt wurde im aktuellen Manual entfernt, die Probleme
> existieren jedoch auch bei PostgreSQL 8.2.
Wenn dem so ist, dann ist das nat=C3=BCrlich ein Bug. Vergessene Objekte
und/oder falsche Reihenfolge von Objekten sollten in neuen pg_dump
Versionen nicht mehr passieren. Hast du ein konkretes Beispiel woran wir
einen solchen Fehler verifizieren k=C3=B6nnen?
--
Thanks
Bernd
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
Re: pg_dump
Am Dienstag, 17. Juli 2007 15:00 schrieb Marc Hanisch:
> 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.
Das dürfte es eigentlich nicht geben. Da müsste man mal einen Beispie=
l sehen.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
Re: pg_dump
am Tue, dem 17.07.2007, um 15:00:53 +0200 mailte Marc Hanisch folgendes:
> Hallo,
>
> ich habe das Problem, dass wir einen Dump einer sehr umfangreichen Date=
nbank
> anfertigen wollen. Nicht nur, dass pg_dump die Objekte nicht in der ric=
htigen
> Reihenfolge erstellt, es werden auch ab und zu Sequenzen vergessen.
Welche Version von pg_dump?
>
> 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ässig=
ere Methode?
>
> Im 7.2'er Manual stand übrigens noch folgenden:
Ja, aber diese Aussage gilt ab 7.4 oder 8.0 als nicht mehr wahr.
> Dieser Abschnitt wurde im aktuellen Manual entfernt, die Probleme exist=
ieren
> jedoch auch bei PostgreSQL 8.2.
Kannst Du das reproduzieren und bei [hackers] abladen?
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq
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ße=
n
> 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
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Re: pg_dump
Hallo,
--- Original-Nachricht ---
Absender: Stefan Kaltenbrunner
Datum: 17.07.2007 16:05 Uhr
>
> 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
>
Vielen Dank für die Infos. Ich habe nun nochmal kräftig getestet. Das
Problem war warscheinlich, dass ich pg_dump der 7.4'er Version mit dem
Parameter -i auf einer 8.2'er Datenbank hab laufen lassen.
Mit dem aktuellen PostgreSQL-Clients funktioniert es in der Tat bestens.
Viele Grüße,
Marc
---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate
Re: pg_dump
am Wed, dem 18.07.2007, um 8:24:21 +0200 mailte Marc Hanisch folgendes:
> Vielen Dank für die Infos. Ich habe nun nochmal kräftig getestet. D=
as
> Problem war warscheinlich, dass ich pg_dump der 7.4'er Version mit dem
> Parameter -i auf einer 8.2'er Datenbank hab laufen lassen.
Autsch.
>
> Mit dem aktuellen PostgreSQL-Clients funktioniert es in der Tat bestens=
..
Na fein. Kann ja mal passieren ;-)
Andreas
--
Andreas Kretschmer
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faq