aboutsummaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/pg_dumpall.sgml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/sgml/ref/pg_dumpall.sgml')
-rw-r--r--doc/src/sgml/ref/pg_dumpall.sgml17
1 files changed, 11 insertions, 6 deletions
diff --git a/doc/src/sgml/ref/pg_dumpall.sgml b/doc/src/sgml/ref/pg_dumpall.sgml
index e219a79858e..d31585216c6 100644
--- a/doc/src/sgml/ref/pg_dumpall.sgml
+++ b/doc/src/sgml/ref/pg_dumpall.sgml
@@ -91,9 +91,12 @@ PostgreSQL documentation
<term><option>--clean</option></term>
<listitem>
<para>
- Include SQL commands to clean (drop) databases before
- recreating them. <command>DROP</command> commands for roles and
- tablespaces are added as well.
+ Emit SQL commands to <command>DROP</command> all the dumped
+ databases, roles, and tablespaces before recreating them.
+ This option is useful when the restore is to overwrite an existing
+ cluster. If any of the objects do not exist in the destination
+ cluster, ignorable error messages will be reported during
+ restore, unless <option>--if-exists</option> is also specified.
</para>
</listitem>
</varlistentry>
@@ -324,9 +327,11 @@ PostgreSQL documentation
<term><option>--if-exists</option></term>
<listitem>
<para>
- Use conditional commands (i.e., add an <literal>IF EXISTS</literal>
- clause) to drop databases and other objects. This option is not valid
- unless <option>--clean</option> is also specified.
+ Use <literal>DROP ... IF EXISTS</literal> commands to drop objects
+ in <option>--clean</option> mode. This suppresses <quote>does not
+ exist</quote> errors that might otherwise be reported. This
+ option is not valid unless <option>--clean</option> is also
+ specified.
</para>
</listitem>
</varlistentry>