Skip to content

Commit d9d2d91

Browse files
committed
Recommend more clearly custom pg_dump format over tar, buy showing
custom format examples first.
1 parent bcf860b commit d9d2d91

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.83 2006/04/15 18:11:16 momjian Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.84 2006/05/06 23:25:37 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -244,28 +244,28 @@ PostgreSQL documentation
244244
</varlistentry>
245245

246246
<varlistentry>
247-
<term><literal>t</></term>
248-
<term><literal>tar</></term>
247+
<term><literal>c</></term>
248+
<term><literal>custom</></term>
249249
<listitem>
250250
<para>
251-
Output a <command>tar</command> archive suitable for input into
252-
<application>pg_restore</application>. Using this archive format
253-
allows reordering and/or exclusion of database objects
254-
at the time the database is restored. It is also possible to limit
255-
which data is reloaded at restore time.
251+
Output a custom archive suitable for input into
252+
<application>pg_restore</application>. This is the most flexible
253+
format in that it allows reordering of loading data as well
254+
as object definitions. This format is also compressed by default.
256255
</para>
257256
</listitem>
258257
</varlistentry>
259258

260259
<varlistentry>
261-
<term><literal>c</></term>
262-
<term><literal>custom</></term>
260+
<term><literal>t</></term>
261+
<term><literal>tar</></term>
263262
<listitem>
264263
<para>
265-
Output a custom archive suitable for input into
266-
<application>pg_restore</application>. This is the most flexible
267-
format in that it allows reordering of loading data as well
268-
as object definitions. This format is also compressed by default.
264+
Output a <command>tar</command> archive suitable for input into
265+
<application>pg_restore</application>. Using this archive format
266+
allows reordering and/or exclusion of database objects
267+
at the time the database is restored. It is also possible to limit
268+
which data is reloaded at restore time.
269269
</para>
270270
</listitem>
271271
</varlistentry>
@@ -665,19 +665,19 @@ CREATE DATABASE foo WITH TEMPLATE template0;
665665
</para>
666666

667667
<para>
668-
To dump a database called <literal>mydb</> to a <filename>tar</filename>
668+
To dump a database called <literal>mydb</> to a file in custom format:
669669
file:
670670

671671
<screen>
672-
<prompt>$</prompt> <userinput>pg_dump -Ft mydb &gt; db.tar</userinput>
672+
<prompt>$</prompt> <userinput>pg_dump -Fc mydb &gt; db.out</userinput>
673673
</screen>
674674
</para>
675675

676676
<para>
677677
To reload this dump into an existing database called <literal>newdb</>:
678678

679679
<screen>
680-
<prompt>$</prompt> <userinput>pg_restore -d newdb db.tar</userinput>
680+
<prompt>$</prompt> <userinput>pg_restore -d newdb db.out</userinput>
681681
</screen>
682682
</para>
683683

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy