1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.73 2008/08/29 17:28:43 alvherre Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/pg_dumpall.sgml,v 1.74 2009/01/05 16:54:36 tgl Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -129,7 +129,7 @@ PostgreSQL documentation
129
129
</para>
130
130
</listitem>
131
131
</varlistentry>
132
-
132
+
133
133
<varlistentry>
134
134
<term><option>-f <replaceable class="parameter">filename</replaceable></option></term>
135
135
<term><option>--file=<replaceable class="parameter">filename</replaceable></option></term>
@@ -183,7 +183,7 @@ PostgreSQL documentation
183
183
Do not output commands to set
184
184
ownership of objects to match the original database.
185
185
By default, <application>pg_dumpall</application> issues
186
- <command>ALTER OWNER</> or
186
+ <command>ALTER OWNER</> or
187
187
<command>SET SESSION AUTHORIZATION</command>
188
188
statements to set ownership of created schema elements.
189
189
These statements
@@ -342,8 +342,8 @@ PostgreSQL documentation
342
342
343
343
<variablelist>
344
344
<varlistentry>
345
- <term>-h <replaceable>host</replaceable></term>
346
- <term>--host=<replaceable>host</replaceable></term>
345
+ <term><option> -h <replaceable>host</replaceable></option ></term>
346
+ <term><option> --host=<replaceable>host</replaceable></option ></term>
347
347
<listitem>
348
348
<para>
349
349
Specifies the host name of the machine on which the database
@@ -354,10 +354,10 @@ PostgreSQL documentation
354
354
</para>
355
355
</listitem>
356
356
</varlistentry>
357
-
357
+
358
358
<varlistentry>
359
- <term>-l <replaceable>dbname</replaceable></term>
360
- <term>--database=<replaceable>dbname</replaceable></term>
359
+ <term><option> -l <replaceable>dbname</replaceable></option ></term>
360
+ <term><option> --database=<replaceable>dbname</replaceable></option ></term>
361
361
<listitem>
362
362
<para>
363
363
Specifies the name of the database to connect to to dump global
@@ -369,8 +369,8 @@ PostgreSQL documentation
369
369
</varlistentry>
370
370
371
371
<varlistentry>
372
- <term>-p <replaceable>port</replaceable></term>
373
- <term>--port=<replaceable>port</replaceable></term>
372
+ <term><option> -p <replaceable>port</replaceable></option ></term>
373
+ <term><option> --port=<replaceable>port</replaceable></option ></term>
374
374
<listitem>
375
375
<para>
376
376
Specifies the TCP port or local Unix domain socket file
@@ -382,8 +382,8 @@ PostgreSQL documentation
382
382
</varlistentry>
383
383
384
384
<varlistentry>
385
- <term>-U <replaceable>username</replaceable></term>
386
- <term>--username=<replaceable>username</replaceable></term>
385
+ <term><option> -U <replaceable>username</replaceable></option ></term>
386
+ <term><option> --username=<replaceable>username</replaceable></option ></term>
387
387
<listitem>
388
388
<para>
389
389
User name to connect as.
@@ -392,12 +392,12 @@ PostgreSQL documentation
392
392
</varlistentry>
393
393
394
394
<varlistentry>
395
- <term>-W </term>
396
- <term>--password</term>
395
+ <term><option>-W</option> </term>
396
+ <term><option> --password</option> </term>
397
397
<listitem>
398
398
<para>
399
399
Force <application>pg_dumpall</application> to prompt for a
400
- password before connecting to a database.
400
+ password before connecting to a database.
401
401
</para>
402
402
403
403
<para>
@@ -417,6 +417,23 @@ PostgreSQL documentation
417
417
</para>
418
418
</listitem>
419
419
</varlistentry>
420
+
421
+ <varlistentry>
422
+ <term><option>--role=<replaceable class="parameter">rolename</replaceable></option></term>
423
+ <listitem>
424
+ <para>
425
+ Specifies a role name to be used to create the dump.
426
+ This option causes <application>pg_dumpall</> to issue a
427
+ <command>SET ROLE</> <replaceable class="parameter">rolename</>
428
+ command after connecting to the database. It is useful when the
429
+ authenticated user (specified by <option>-U</>) lacks privileges
430
+ needed by <application>pg_dumpall</>, but can switch to a role with
431
+ the required rights. Some installations have a policy against
432
+ logging in directly as a superuser, and use of this option allows
433
+ dumps to be made without violating the policy.
434
+ </para>
435
+ </listitem>
436
+ </varlistentry>
420
437
</variablelist>
421
438
</para>
422
439
</refsect1>
@@ -503,6 +520,6 @@ PostgreSQL documentation
503
520
Check <xref linkend="app-pgdump"> for details on possible
504
521
error conditions.
505
522
</para>
506
- </refsect1>
523
+ </refsect1>
507
524
508
525
</refentry>
0 commit comments