1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

Doc: Improve -R option added in e5aeed4b80.

Author: Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: vignesh C <vignesh21@gmail.com>
Discussion: https://postgr.es/m/CAHut+PvJPnaL=70SbBe3fYg2nq74Z=Yv4X=zRpUWYfOi-q6=2w@mail.gmail.com
This commit is contained in:
Amit Kapila
2025-04-03 14:27:13 +05:30
parent 8806e4e8de
commit d1d83827ba

View File

@ -167,24 +167,31 @@ PostgreSQL documentation
</varlistentry> </varlistentry>
<varlistentry> <varlistentry>
<term><option>-R</option></term> <term><option>-R <replaceable class="parameter">objtype</replaceable></option></term>
<term><option>--remove</option></term> <term><option>--remove=<replaceable class="parameter">objtype</replaceable></option></term>
<listitem> <listitem>
<para> <para>
Remove all objects of the specified type from specified databases on the Remove all objects of the specified type from specified databases on the
target server. target server.
</para> </para>
<para> <para>
publications: The "all tables" publications established for this <itemizedlist>
subscriber are always removed; specifying this object type causes all <listitem>
other publications replicated from the source server to be dropped as <para>
well. <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>
<para> <para>
The objects selected to be dropped are individually logged and do show The objects selected to be dropped are individually logged, including during
up in a --dry-run. There is no opportunity to affect or stop the 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 dropping of the selected objects, so consider taking a backup of them
using pg_dump. using <application>pg_dump</application>.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>