|
|
@ -170,11 +170,12 @@ PostgreSQL documentation |
|
|
|
<term><option>--clean</option></term> |
|
|
|
<term><option>--clean</option></term> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Output commands to clean (drop) |
|
|
|
Output commands to <command>DROP</command> all the dumped |
|
|
|
database objects prior to outputting the commands for creating them. |
|
|
|
database objects prior to outputting the commands for creating them. |
|
|
|
(Unless <option>--if-exists</option> is also specified, |
|
|
|
This option is useful when the restore is to overwrite an existing |
|
|
|
restore might generate some harmless error messages, if any objects |
|
|
|
database. If any of the objects do not exist in the destination |
|
|
|
were not present in the destination database.) |
|
|
|
database, ignorable error messages will be reported during |
|
|
|
|
|
|
|
restore, unless <option>--if-exists</option> is also specified. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
|
|
|
|
|
|
|
|
<para> |
|
|
|
<para> |
|
|
@ -839,9 +840,11 @@ PostgreSQL documentation |
|
|
|
<term><option>--if-exists</option></term> |
|
|
|
<term><option>--if-exists</option></term> |
|
|
|
<listitem> |
|
|
|
<listitem> |
|
|
|
<para> |
|
|
|
<para> |
|
|
|
Use conditional commands (i.e., add an <literal>IF EXISTS</literal> |
|
|
|
Use <literal>DROP ... IF EXISTS</literal> commands to drop objects |
|
|
|
clause) when cleaning database objects. This option is not valid |
|
|
|
in <option>--clean</option> mode. This suppresses <quote>does not |
|
|
|
unless <option>--clean</option> is also specified. |
|
|
|
exist</quote> errors that might otherwise be reported. This |
|
|
|
|
|
|
|
option is not valid unless <option>--clean</option> is also |
|
|
|
|
|
|
|
specified. |
|
|
|
</para> |
|
|
|
</para> |
|
|
|
</listitem> |
|
|
|
</listitem> |
|
|
|
</varlistentry> |
|
|
|
</varlistentry> |
|
|
|