|
1 | 1 | <!--
|
2 |
| -$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.44 2002/04/21 19:02:39 thomas Exp $ |
| 2 | +$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_dump.sgml,v 1.45 2002/05/10 22:36:26 tgl Exp $ |
3 | 3 | PostgreSQL documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -407,10 +407,11 @@ PostgreSQL documentation
|
407 | 407 | <term><option>--superuser=<replaceable class="parameter">username</replaceable></option></term>
|
408 | 408 | <listitem>
|
409 | 409 | <para>
|
410 |
| - The scripts or archives created by <command>pg_dump</command> |
411 |
| - need to have superuser access in certain cases, such as when |
412 |
| - disabling triggers or setting ownership of schema elements. |
413 |
| - This option specifies the user name to use for those cases. |
| 410 | + Specify the superuser user name to use when disabling triggers. |
| 411 | +This is only relevant if <option>--disable-triggers</> is used. |
| 412 | +(Usually, it's better to specify |
| 413 | +<option>--use-set-session-authorization</>, and then start the |
| 414 | +resulting script as superuser.) |
414 | 415 | </para>
|
415 | 416 | </listitem>
|
416 | 417 | </varlistentry>
|
@@ -481,6 +482,36 @@ PostgreSQL documentation
|
481 | 482 | </listitem>
|
482 | 483 | </varlistentry>
|
483 | 484 |
|
| 485 | + <varlistentry> |
| 486 | + <term><option>-X disable-triggers</></term> |
| 487 | + <term><option>--disable-triggers</></term> |
| 488 | + <listitem> |
| 489 | + <para> |
| 490 | + This option is only relevant when creating a data-only dump. |
| 491 | +It instructs <command>pg_dump</command> to include commands |
| 492 | +to temporarily disable triggers on the target tables while |
| 493 | +the data is reloaded. Use this if you have referential |
| 494 | +integrity checks or other triggers on the tables that you |
| 495 | +do not want to invoke during data reload. |
| 496 | + </para> |
| 497 | + |
| 498 | + <para> |
| 499 | + Presently, the commands emitted for <option>--disable-triggers</> |
| 500 | +must be done as superuser. So, you should also specify |
| 501 | +a superuser name with <option>-S</>, or preferably specify |
| 502 | +<option>--use-set-session-authorization</> and then be careful to |
| 503 | +start the resulting script as a superuser. If you give neither |
| 504 | +option, the entire script must be run as superuser. |
| 505 | + </para> |
| 506 | + |
| 507 | + <para> |
| 508 | + This option is only meaningful for the plain-text format. For |
| 509 | + the other formats, you may specify the option when you |
| 510 | + call <command>pg_restore</command>. |
| 511 | + </para> |
| 512 | + </listitem> |
| 513 | + </varlistentry> |
| 514 | + |
484 | 515 | <varlistentry>
|
485 | 516 | <term><option>-Z <replaceable class="parameter">0..9</replaceable></option></term>
|
486 | 517 | <term><option>--compress=<replaceable class="parameter">0..9</replaceable></option></term>
|
|