Commit 382cc680 authored by Michael Paquier's avatar Michael Paquier

doc: Fix parameter name for pg_create_logical_replication_slot()

The parameter controlling if two-phase transactions can be decoded was
named "two_phase" in the documentation while its procedure defines
"twophase".

Author: Florin Irion
Discussion: https://postgr.es/m/5eeabd10-1aff-ea61-f92d-9fa0d9a7e207@gmail.com
Backpatch-through: 14
parent e68fc64f
...@@ -25891,7 +25891,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup()); ...@@ -25891,7 +25891,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
<indexterm> <indexterm>
<primary>pg_create_logical_replication_slot</primary> <primary>pg_create_logical_replication_slot</primary>
</indexterm> </indexterm>
<function>pg_create_logical_replication_slot</function> ( <parameter>slot_name</parameter> <type>name</type>, <parameter>plugin</parameter> <type>name</type> <optional>, <parameter>temporary</parameter> <type>boolean</type>, <parameter>two_phase</parameter> <type>boolean</type> </optional> ) <function>pg_create_logical_replication_slot</function> ( <parameter>slot_name</parameter> <type>name</type>, <parameter>plugin</parameter> <type>name</type> <optional>, <parameter>temporary</parameter> <type>boolean</type>, <parameter>twophase</parameter> <type>boolean</type> </optional> )
<returnvalue>record</returnvalue> <returnvalue>record</returnvalue>
( <parameter>slot_name</parameter> <type>name</type>, ( <parameter>slot_name</parameter> <type>name</type>,
<parameter>lsn</parameter> <type>pg_lsn</type> ) <parameter>lsn</parameter> <type>pg_lsn</type> )
...@@ -25904,7 +25904,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup()); ...@@ -25904,7 +25904,7 @@ postgres=# SELECT * FROM pg_walfile_name_offset(pg_stop_backup());
the slot should not be permanently stored to disk and is only meant the slot should not be permanently stored to disk and is only meant
for use by the current session. Temporary slots are also for use by the current session. Temporary slots are also
released upon any error. The optional fourth parameter, released upon any error. The optional fourth parameter,
<parameter>two_phase</parameter>, when set to true, specifies <parameter>twophase</parameter>, when set to true, specifies
that the decoding of prepared transactions is enabled for this that the decoding of prepared transactions is enabled for this
slot. A call to this function has the same effect as the replication slot. A call to this function has the same effect as the replication
protocol command <literal>CREATE_REPLICATION_SLOT ... LOGICAL</literal>. protocol command <literal>CREATE_REPLICATION_SLOT ... LOGICAL</literal>.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment