On Thu, May 22, 2014 at 12:44 PM, Michael Paquier
<[email protected]> wrote:
> Hi all,
>
> As written in subject, replication protocol documentation lacks
> details about logical slots in CREATE_REPLICATION_SLOT command:
> http://www.postgresql.org/docs/devel/static/protocol-replication.html
> Attached is a patch correcting that.
An additional thing I noticed: START_REPLICATION does not mention that
it is possible to specify options for the output plugin. All the fixes
are included in the patch attached.
Regards,
--
Michael
diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml
index 3a2421b..42ed113 100644
--- a/doc/src/sgml/protocol.sgml
+++ b/doc/src/sgml/protocol.sgml
@@ -1428,10 +1428,10 @@ The commands accepted in walsender mode are:
</varlistentry>
<varlistentry>
- <term><literal>CREATE_REPLICATION_SLOT</literal> <replaceable
class="parameter">slotname</>
<literal>PHYSICAL</literal><indexterm><primary>CREATE_REPLICATION_SLOT</primary></indexterm></term>
+ <term><literal>CREATE_REPLICATION_SLOT</literal> <replaceable
class="parameter">slotname</> { <literal>PHYSICAL</> | <literal>LOGICAL</>
<replaceable class="parameter">output_plugin</> }
<indexterm><primary>CREATE_REPLICATION_SLOT</primary></indexterm></term>
<listitem>
<para>
- Create a physical replication
+ Create a physical or logical replication
slot. See <xref linkend="streaming-replication-slots"> for more about
replication slots.
</para>
@@ -1445,6 +1445,16 @@ The commands accepted in walsender mode are:
</para>
</listitem>
</varlistentry>
+
+ <varlistentry>
+ <term><replaceable class="parameter">output_plugin</></term>
+ <listitem>
+ <para>
+ The name of the output plugin used for logical decoding
+ (see <xref linkend="logicaldecoding-output-plugin">).
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</listitem>
</varlistentry>
@@ -1778,7 +1788,7 @@ The commands accepted in walsender mode are:
</listitem>
</varlistentry>
<varlistentry>
- <term><literal>START_REPLICATION</literal> <literal>SLOT</literal>
<replaceable class="parameter">slotname</> <literal>LOGICAL</literal>
<replaceable class="parameter">XXX/XXX</></term>
+ <term><literal>START_REPLICATION</literal> <literal>SLOT</literal>
<replaceable class="parameter">slotname</> <literal>LOGICAL</literal>
<replaceable class="parameter">XXX/XXX</> [ ( <replaceable>option</replaceable>
[, ... ] ) ]</term>
<listitem>
<para>
Instructs server to start streaming WAL for logical replication, starting
@@ -1811,6 +1821,14 @@ The commands accepted in walsender mode are:
</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><replaceable class="parameter">option</></term>
+ <listitem>
+ <para>
+ Custom option for logical decoding plugin.
+ </para>
+ </listitem>
+ </varlistentry>
</variablelist>
</listitem>
</varlistentry>
--
Sent via pgsql-hackers mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers