mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
pg_createsubscriber: Rename option --remove to --clean
After discussion, the name --remove was suboptimally chosen. --clean has more precedent in other PostgreSQL tools. Reviewed-by: Hayato Kuroda (Fujitsu) <kuroda.hayato@fujitsu.com> Discussion: https://www.postgresql.org/message-id/84be7ff3-2763-4c0f-ac1e-ca9862077f41@eisentraut.org
This commit is contained in:
@ -169,36 +169,6 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-R <replaceable class="parameter">objtype</replaceable></option></term>
|
||||
<term><option>--remove=<replaceable class="parameter">objtype</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Remove all objects of the specified type from specified databases on the
|
||||
target server.
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>publications</literal>:
|
||||
The <literal>FOR ALL TABLES</literal> publications established for this
|
||||
subscriber are always removed; specifying this object type causes all
|
||||
other publications replicated from the source server to be dropped as
|
||||
well.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
The objects selected to be dropped are individually logged, including during
|
||||
a <option>--dry-run</option>. There is no opportunity to affect or stop the
|
||||
dropping of the selected objects, so consider taking a backup of them
|
||||
using <application>pg_dump</application>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>-s <replaceable class="parameter">dir</replaceable></option></term>
|
||||
<term><option>--socketdir=<replaceable class="parameter">dir</replaceable></option></term>
|
||||
@ -259,6 +229,35 @@ PostgreSQL documentation
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--clean=<replaceable class="parameter">objtype</replaceable></option></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Drop all objects of the specified type from specified databases on the
|
||||
target server.
|
||||
</para>
|
||||
<para>
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<literal>publications</literal>:
|
||||
The <literal>FOR ALL TABLES</literal> publications established for this
|
||||
subscriber are always dropped; specifying this object type causes all
|
||||
other publications replicated from the source server to be dropped as
|
||||
well.
|
||||
</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
</para>
|
||||
<para>
|
||||
The objects selected to be dropped are individually logged, including during
|
||||
a <option>--dry-run</option>. There is no opportunity to affect or stop the
|
||||
dropping of the selected objects, so consider taking a backup of them
|
||||
using <application>pg_dump</application>.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><option>--config-file=<replaceable class="parameter">filename</replaceable></option></term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user