Skip to content

Commit 00a8012

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 ab9536b commit 00a8012

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-
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.43 2003/09/23 22:48:53 tgl Exp $ -->
1+
<!-- $Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_restore.sgml,v 1.43.2.1 2010/05/15 18:11:41 tgl Exp $ -->
22

33
<refentry id="APP-PGRESTORE">
44
<refmeta>
@@ -156,10 +156,7 @@
156156
<term><literal>t</></term>
157157
<listitem>
158158
<para>
159-
The archive is a <command>tar</command> archive. Using this
160-
archive format allows reordering and/or exclusion of schema
161-
elements at the time the database is restored. It is also
162-
possible to limit which data is reloaded at restore time.
159+
The archive is a <command>tar</command> archive.
163160
</para>
164161
</listitem>
165162
</varlistentry>
@@ -169,10 +166,7 @@
169166
<listitem>
170167
<para>
171168
The archive is in the custom format of
172-
<application>pg_dump</application>. This is the most
173-
flexible format in that it allows reordering of data load
174-
as well as schema elements. This format is also compressed
175-
by default.
169+
<application>pg_dump</application>.
176170
</para>
177171
</listitem>
178172
</varlistentry>
@@ -207,8 +201,9 @@
207201
<listitem>
208202
<para>
209203
List the contents of the archive. The output of this operation
210-
can be used with the <option>-L</option> option to restrict
211-
and reorder the items that are restored.
204+
can be used as input to the <option>-L</option> option. Note that
205+
if filtering switches such as <option>-n</> or <option>-t</> are
206+
used with <option>-l</>, they will restrict the items listed.
212207
</para>
213208
</listitem>
214209
</varlistentry>
@@ -218,11 +213,18 @@
218213
<term><option>--use-list=<replaceable class="parameter">list-file</replaceable></option></term>
219214
<listitem>
220215
<para>
221-
Restore elements in <REPLACEABLE
222-
CLASS="PARAMETER">list-file</REPLACEABLE> only, and in the
223-
order they appear in the file. Lines can be moved and may also
224-
be commented out by placing a <literal>;</literal> at the
225-
start of the line. (See below for examples.)
216+
Restore only those archive elements that are listed in <replaceable
217+
class="PARAMETER">list-file</replaceable>, and restore them in the
218+
order they appear in the file. Note that
219+
if filtering switches such as <option>-n</> or <option>-t</> are
220+
used with <option>-L</>, they will further restrict the items restored.
221+
</para>
222+
<para>
223+
<replaceable class="PARAMETER">list-file</> is normally created by
224+
editing the output of a previous <option>-l</> operation.
225+
Lines can be moved or removed, and can also
226+
be commented out by placing a semicolon (<literal>;</literal>) at the
227+
start of the line. See below for examples.
226228
</para>
227229
</listitem>
228230
</varlistentry>

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