From: Bharath Rupireddy <bharath.rupireddy@enterprisedb.com>
Subject: [PATCH v8 3/4] Add documentation for ALTER SUBSCRIPTION...ADD/DROP PUBLICATION
Date: Tue, 16 Feb 2021 07:21:36 +0530
---
doc/src/sgml/ref/alter_subscription.sgml | 65 ++++++++++++++++++++++++
1 file changed, 65 insertions(+)
diff --git a/doc/src/sgml/ref/alter_subscription.sgml b/doc/src/sgml/ref/alter_subscription.sgmlindex 0adf68ecca..aa181b94c5 100644--- a/doc/src/sgml/ref/alter_subscription.sgml+++ b/doc/src/sgml/ref/alter_subscription.sgml@@ -23,6 +23,8 @@ PostgreSQL documentation
<synopsis>
ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> CONNECTION '<replaceable>conninfo</replaceable>'
ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> SET PUBLICATION <replaceable class="parameter">publication_name</replaceable> [, ...] [ WITH ( <replaceable class="parameter">set_publication_option</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) ]
+ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> ADD PUBLICATION <replaceable class="parameter">publication_name</replaceable> [, ...] [ WITH ( <replaceable class="parameter">set_publication_option</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) ]+ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> DROP PUBLICATION <replaceable class="parameter">publication_name</replaceable> [, ...] [ WITH ( <replaceable class="parameter">set_publication_option</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) ]
ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> REFRESH PUBLICATION [ WITH ( <replaceable class="parameter">refresh_option</replaceable> [= <replaceable class="parameter">value</replaceable>] [, ... ] ) ]
ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> ENABLE
ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> DISABLE
@@ -125,6 +127,69 @@ ALTER SUBSCRIPTION <replaceable class="parameter">name</replaceable> RENAME TO <
</listitem>
</varlistentry>
+ <varlistentry>+ <term><literal>ADD PUBLICATION <replaceable class="parameter">publication_name</replaceable></literal></term>+ <listitem>+ <para>+ Add list of publications to subscription. See+ <xref linkend="sql-createsubscription"/> for more information.+ By default this command will also act like <literal>REFRESH+ PUBLICATION</literal>, except it only affect on added publications.+ </para>++ <para>+ <replaceable>set_publication_option</replaceable> specifies additional+ options for this operation. The supported options are:++ <variablelist>+ <varlistentry>+ <term><literal>refresh</literal> (<type>boolean</type>)</term>+ <listitem>+ <para>+ When false, the command will not try to refresh table information.+ <literal>REFRESH PUBLICATION</literal> should then be executed separately.+ The default is <literal>true</literal>.+ </para>+ </listitem>+ </varlistentry>+ </variablelist>++ Additionally, refresh options as described+ under <literal>REFRESH PUBLICATION</literal> may be specified.+ </para>+ </listitem>+ </varlistentry>++ <varlistentry>+ <term><literal>DROP PUBLICATION <replaceable class="parameter">publication_name</replaceable></literal></term>+ <listitem>+ <para>+ Drop list of publications from subscription. See+ <xref linkend="sql-createsubscription"/> for more information.+ By default this command will also act like <literal>REFRESH+ PUBLICATION</literal>, except it only affect on dropped publications.+ </para>++ <para>+ <replaceable>set_publication_option</replaceable> specifies additional+ options for this operation. The supported options are:++ <variablelist>+ <varlistentry>+ <term><literal>refresh</literal> (<type>boolean</type>)</term>+ <listitem>+ <para>+ When false, the command will not try to refresh table information.+ <literal>REFRESH PUBLICATION</literal> should then be executed separately.+ The default is <literal>true</literal>.+ </para>+ </listitem>+ </varlistentry>+ </variablelist>+ </para>+ </listitem>+ </varlistentry>+
<varlistentry>
<term><literal>REFRESH PUBLICATION</literal></term>
<listitem>
--
2.25.1
--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
filename=v8-0004-Add-tab-complete-for-ALTER-SUBSCRIPTION.ADD-DROP.patch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: bharath.rupireddy@enterprisedb.com
Subject: Re: [PATCH v8 3/4] Add documentation for ALTER SUBSCRIPTION...ADD/DROP PUBLICATION
In-Reply-To: <no-message-id-171213@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox