@@ -1428,10 +1428,10 @@ The commands accepted in walsender mode are:
1428
1428
</varlistentry>
1429
1429
1430
1430
<varlistentry>
1431
- <term><literal> CREATE_REPLICATION_SLOT</literal> <replaceable class="parameter">slotname</> <literal>PHYSICAL</literal><indexterm><primary>CREATE_REPLICATION_SLOT</primary></indexterm></term>
1431
+ <term>CREATE_REPLICATION_SLOT <replaceable class="parameter">slotname</> { <literal>PHYSICAL</> | < literal>LOGICAL</> <replaceable class="parameter">output_plugin</> } <indexterm><primary>CREATE_REPLICATION_SLOT</primary></indexterm></term>
1432
1432
<listitem>
1433
1433
<para>
1434
- Create a physical replication
1434
+ Create a physical or logical replication
1435
1435
slot. See <xref linkend="streaming-replication-slots"> for more about
1436
1436
replication slots.
1437
1437
</para>
@@ -1445,12 +1445,22 @@ The commands accepted in walsender mode are:
1445
1445
</para>
1446
1446
</listitem>
1447
1447
</varlistentry>
1448
+
1449
+ <varlistentry>
1450
+ <term><replaceable class="parameter">output_plugin</></term>
1451
+ <listitem>
1452
+ <para>
1453
+ The name of the output plugin used for logical decoding
1454
+ (see <xref linkend="logicaldecoding-output-plugin">).
1455
+ </para>
1456
+ </listitem>
1457
+ </varlistentry>
1448
1458
</variablelist>
1449
1459
</listitem>
1450
1460
</varlistentry>
1451
1461
1452
1462
<varlistentry>
1453
- <term><literal> START_REPLICATION</literal> [<literal>SLOT</literal> <replaceable class="parameter">slotname</>] [<literal>PHYSICAL</literal>] <replaceable class="parameter">XXX/XXX</> [<literal>TIMELINE</literal> <replaceable class="parameter">tli</>]</term>
1463
+ <term>START_REPLICATION [<literal>SLOT</literal> <replaceable class="parameter">slotname</>] [<literal>PHYSICAL</literal>] <replaceable class="parameter">XXX/XXX</> [<literal>TIMELINE</literal> <replaceable class="parameter">tli</>]</term>
1454
1464
<listitem>
1455
1465
<para>
1456
1466
Instructs server to start streaming WAL, starting at
@@ -1778,7 +1788,7 @@ The commands accepted in walsender mode are:
1778
1788
</listitem>
1779
1789
</varlistentry>
1780
1790
<varlistentry>
1781
- <term><literal> START_REPLICATION</literal> <literal>SLOT</literal> <replaceable class="parameter">slotname</> <literal>LOGICAL</literal> <replaceable class="parameter">XXX/XXX</></term>
1791
+ <term>START_REPLICATION <literal>SLOT</literal> <replaceable class="parameter">slotname</> <literal>LOGICAL</literal> <replaceable class="parameter">XXX/XXX</> [ ( <replaceable>option_name</replaceable> [<replaceable>option_value</replaceable>] [, ... ] ) ] </term>
1782
1792
<listitem>
1783
1793
<para>
1784
1794
Instructs server to start streaming WAL for logical replication, starting
@@ -1787,10 +1797,17 @@ The commands accepted in walsender mode are:
1787
1797
been recycled. On success, server responds with a CopyBothResponse
1788
1798
message, and then starts to stream WAL to the frontend.
1789
1799
</para>
1800
+
1801
+ <para>
1802
+ The messages inside the CopyBothResponse messages are of the same format
1803
+ documented for <literal>START_REPLICATION ... PHYSICAL</literal>.
1804
+ </para>
1805
+
1790
1806
<para>
1791
1807
The output plugin associated with the selected slot is used
1792
1808
to process the output for streaming.
1793
1809
</para>
1810
+
1794
1811
<variablelist>
1795
1812
<varlistentry>
1796
1813
<term><literal>SLOT</literal> <replaceable class="parameter">slotname</></term>
@@ -1811,12 +1828,29 @@ The commands accepted in walsender mode are:
1811
1828
</para>
1812
1829
</listitem>
1813
1830
</varlistentry>
1831
+ <varlistentry>
1832
+ <term><replaceable class="parameter">option_name</></term>
1833
+ <listitem>
1834
+ <para>
1835
+ The name of an option passed to the slot's logical decoding plugin.
1836
+ </para>
1837
+ </listitem>
1838
+ </varlistentry>
1839
+ <varlistentry>
1840
+ <term><replaceable class="parameter">option_value</></term>
1841
+ <listitem>
1842
+ <para>
1843
+ Optional value, in the form of a string constant, associated with the
1844
+ specified option.
1845
+ </para>
1846
+ </listitem>
1847
+ </varlistentry>
1814
1848
</variablelist>
1815
1849
</listitem>
1816
1850
</varlistentry>
1817
1851
1818
1852
<varlistentry>
1819
- <term><literal> DROP_REPLICATION_SLOT</literal> <replaceable class="parameter">slotname</></term>
1853
+ <term>DROP_REPLICATION_SLOT <replaceable class="parameter">slotname</></term>
1820
1854
<listitem>
1821
1855
<para>
1822
1856
Drops a replication slot, freeing any reserved server-side resources. If
0 commit comments