8000 Improve documentation of pg_restore's -l and -L switches to point out… · danielcode/postgres@8be5f6e · GitHub
[go: up one dir, main page]

Skip to content

Commit 8be5f6e

Browse files
committed
Improve documentation of pg_restore's -l and -L switches to point out their
interactions with filtering switches, such as -n and -t. Per a complaint from Russell Smith.
1 parent 8a5b8ae commit 8be5f6e

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

doc/src/sgml/ref/pg_restore.sgml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.49.4.1 2005/01/23 00:37:56 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.49.4.2 2010/05/15 18:11:35 tgl Exp $ -->
22

33
<refentry id="APP-PGRESTORE">
44
<refmeta>
@@ -168,10 +168,7 @@
168168
<term><literal>t</></term>
169169
<listitem>
170170
<para>
171-
The archive is a <command>tar</command> archive. Using this
172-
archive format allows reordering and/or exclusion of schema
173-
elements at the time the database is restored. It is also
174-
possible to limit which data is reloaded at restore time.
171+
The archive is a <command>tar</command> archive.
175172
</para>
176173
</listitem>
177174
</varlistentry>
@@ -181,10 +178,7 @@
181178
<listitem>
182179
<para>
183180
The archive is in the custom format of
184-
<application>pg_dump</application>. This is the most
185-
flexible format in that it allows reordering of data load
186-
as well as schema elements. This format is also compressed
187-
by default.
181+
<application>pg_dump</application>.
188182
</para>
189183
</listitem>
190184
</varlistentry>
@@ -219,8 +213,9 @@
219213
<listitem>
220214
<para>
221215
List the contents of the archive. The output of this operation
222-
can be used with the <option>-L</option> option to restrict
223-
and reorder the items that are restored.
216+
can be used as input to the <option>-L</option> option. Note that
217+
if filtering switches such as <option>-n</> or <option>-t</> are
218+
used with <option>-l</>, they will restrict the items listed.
224219
</para>
225220
</listitem>
226221
</varlistentry>
@@ -230,11 +225,18 @@
230225
<term><option>--use-list=<replaceable class="parameter">list-file</replaceable></option></term>
231226
<listitem>
232227
<para>
233-
Restore elements in <replaceable class="PARAMETER">
234-
list-file</replaceable> only, and in the
235-
order they appear in the file. Lines can be moved and may also
236-
be commented out by placing a <literal>;</literal> at the
237-
start of the line. (See below for examples.)
228+
Restore only those archive elements that are listed in <replaceable
229+
class="PARAMETER">list-file</replaceable>, and restore them in the
230+
order they appear in the file. Note that
231+
if filtering switches such as <option>-n</> or <option>-t</> are
232+
used with <option>-L</>, they will further restrict the items restored.
233+
</para>
234+
<para>
235+
<replaceable class="PARAMETER">list-file</> is normally created by
236+
editing the output of a previous <option>-l</> operation.
237+
Lines can be moved or removed, and can also
238+
be commented out by placing a semicolon (<literal>;</literal>) at the
239+
start of the line. See below for examples.
238240
</para>
239241
</listitem>
240242
</varlistentry>

0 commit comments

Comments
 (0)
0