Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92e1b74

Browse files
committed
Editorial work on descriptions of options.
1 parent b662e32 commit 92e1b74

File tree

3 files changed

+126
-94
lines changed

3 files changed

+126
-94
lines changed

doc/src/sgml/ref/pg_dump.sgml

Lines changed: 46 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.37 2001/09/21 21:58:29 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.38 2001/10/23 22:11:22 tgl Exp $
33
Postgres documentation
44
-->
55

@@ -64,7 +64,7 @@ Postgres documentation
6464
<productname>PostgreSQL</productname> database into a script or an
6565
archive file. The script files are in plain text format and
6666
contain the SQL commands required to reconstruct the database to
67-
the state it was in at the time is was saved. They can be used to
67+
the state it was in at the time it was saved. They can be used to
6868
reconstruct the database even on other machines and other
6969
architectures, with some modifications even on other RDBMS
7070
products. The alternative archive file formats are meant to be
@@ -91,12 +91,19 @@ Postgres documentation
9191

9292
<para>
9393
When used with one of the archive file formats and combined with
94-
<command>pg_restore</command>, it provides a flexible archival and
94+
<xref linkend="app-pgrestore">, <command>pg_dump</command> provides a
95+
flexible archival and
9596
transfer mechanism. <command>pg_dump</command> can be used to
9697
backup an entire database, then <command>pg_restore</command> can
9798
be used to examine the archive and/or select which parts of the
98-
database are to be restored. See the <xref
99-
linkend="app-pgrestore"> documentation for details.
99+
database are to be restored.
100+
The most flexible output file format is the <quote>custom</quote>
101+
format (<option>-Fc</option>). It allows for selection and
102+
reordering of all archived items, and is compressed by default. The
103+
<filename>tar</filename> format (<option>-Ft</option>) is not
104+
compressed and it is not possible to reorder data when loading, but
105+
it is otherwise quite flexible; moreover, it can be manipulated with
106+
other tools such as <filename>tar</filename>.
100107
</para>
101108

102109
<para>
@@ -124,7 +131,7 @@ Postgres documentation
124131
<term><replaceable class="parameter">dbname</replaceable></term>
125132
<listitem>
126133
<para>
127-
Specifies the name of the database to be extracted.
134+
Specifies the name of the database to be dumped.
128135
</para>
129136
</listitem>
130137
</varlistentry>
@@ -136,6 +143,12 @@ Postgres documentation
136143
<para>
137144
Dump only the data, not the schema (data definitions).
138145
</para>
146+
147+
<para>
148+
This option is only meaningful for the plain text format. For
149+
the other formats, you may specify the option when you
150+
call <command>pg_restore</command>.
151+
</para>
139152
</listitem>
140153
</varlistentry>
141154

@@ -154,8 +167,14 @@ Postgres documentation
154167
<term>--clean</term>
155168
<listitem>
156169
<para>
157-
Output commands to clean (drop) the schema prior to (the
158-
commands for) creating it.
170+
Output commands to clean (drop)
171+
database objects prior to (the commands for) creating them.
172+
</para>
173+
174+
<para>
175+
This option is only meaningful for the plain text format. For
176+
the other formats, you may specify the option when you
177+
call <command>pg_restore</command>.
159178
</para>
160179
</listitem>
161180
</varlistentry>
@@ -165,7 +184,16 @@ Postgres documentation
165184
<term>--create</term>
166185
<listitem>
167186
<para>
168-
For plain text (script) output, include commands to create the database itself.
187+
Begin the output with a command to create the
188+
database itself and reconnect to the created database. (With a
189+
script of this form, it doesn't matter which database you connect
190+
to before running the script.)
191+
</para>
192+
193+
<para>
194+
This option is only meaningful for the plain text format. For
195+
the other formats, you may specify the option when you
196+
call <command>pg_restore</command>.
169197
</para>
170198
</listitem>
171199
</varlistentry>
@@ -175,7 +203,7 @@ Postgres documentation
175203
<term>--inserts</term>
176204
<listitem>
177205
<para>
178-
Dump data as proper <command>INSERT</command> commands (rather
206+
Dump data as <command>INSERT</command> commands (rather
179207
than <command>COPY</command>). This will make restoration very
180208
slow, but it makes the archives more portable to other RDBMS
181209
packages.
@@ -193,7 +221,8 @@ Postgres documentation
193221
column names (<literal>INSERT INTO
194222
<replaceable>table</replaceable>
195223
(<replaceable>column</replaceable>, ...) VALUES
196-
...</literal>). This will make restoration very slow.
224+
...</literal>). This will make restoration very slow,
225+
but it is necessary if you desire to rearrange column ordering.
197226
</para>
198227
</listitem>
199228
</varlistentry>
@@ -306,7 +335,7 @@ Postgres documentation
306335
<listitem>
307336
<para>
308337
Dump object identifiers (<acronym>OID</acronym>s) for every
309-
table. Use this option if your application references the oid
338+
table. Use this option if your application references the OID
310339
columns in some way (e.g., in a foreign key constraint).
311340
Otherwise, this option should not be used.
312341
</para>
@@ -318,7 +347,7 @@ Postgres documentation
318347
<term>--no-owner</term>
319348
<listitem>
320349
<para>
321-
In plain text output mode, do not output commands to set the
350+
Do not output commands to set the
322351
object ownership to match the original database. Typically,
323352
<command>pg_dump</command> issues
324353
(<command>psql</command>-specific) <command>\connect</command>
@@ -332,7 +361,7 @@ Postgres documentation
332361

333362
<para>
334363
This option is only meaningful for the plain text format. For
335-
the other formats, you need to specify the option when you
364+
the other formats, you may specify the option when you
336365
call <command>pg_restore</command>.
337366
</para>
338367
</listitem>
@@ -343,7 +372,7 @@ Postgres documentation
343372
<term>--no-reconnect</term>
344373
<listitem>
345374
<para>
346-
In plain text output mode, prohibit <command>pg_dump</command>
375+
Prohibit <command>pg_dump</command>
347376
from outputting a script that would require reconnections to
348377
the database while being restored. An average restoration
349378
script usually has to reconnect several times as different
@@ -362,7 +391,7 @@ Postgres documentation
362391

363392
<para>
364393
This option is only meaningful for the plain text format. For
365-
the other formats, you need to specify the option when you
394+
the other formats, you may specify the option when you
366395
call <command>pg_restore</command>.
367396
</para>
368397
</listitem>
@@ -451,7 +480,7 @@ Postgres documentation
451480

452481
<para>
453482
This option is only meaningful for the plain text format. For
454-
the other formats, you need to specify the option when you
483+
the other formats, you may specify the option when you
455484
call <command>pg_restore</command>.
456485
</para>
457486
</listitem>

doc/src/sgml/ref/pg_dumpall.sgml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.24 2001/10/05 15:50:11 momjian Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.25 2001/10/23 22:11:22 tgl Exp $
33
Postgres documentation
44
-->
55

@@ -50,7 +50,12 @@ Postgres documentation
5050

5151
<para>
5252
Thus, <application>pg_dumpall</application> is an integrated
53-
solution for backing up your databases.
53+
solution for backing up your databases. But note a limitation:
54+
it cannot dump <quote>large objects</quote>, since
55+
<application>pg_dump</application> cannot dump such objects into
56+
text files. If you have databases containing large objects,
57+
they should be dumped using one of <application>pg_dump</application>'s
58+
non-text output modes.
5459
</para>
5560

5661
<para>
@@ -78,7 +83,10 @@ Postgres documentation
7883
<term>-c, --clean</term>
7984
<listitem>
8085
<para>
81-
Clean (drop) database before creating schema.
86+
Include SQL commands to clean (drop) database objects before
87+
recreating them. (This option is fairly useless, since the
88+
output script expects to create the databases themselves;
89+
they would always be empty upon creation.)
8290
</para>
8391
</listitem>
8492
</varlistentry>

0 commit comments

Comments
 (0)