@@ -18465,7 +18465,7 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18465
18465
<indexterm>
18466
18466
<primary>pg_create_physical_replication_slot</primary>
18467
18467
</indexterm>
18468
- <literal><function>pg_create_physical_replication_slot(<parameter>slot_name</parameter> <type>name</type> <optional>, <parameter>immediately_reserve</> <type>boolean</> </optional>)</function></literal>
18468
+ <literal><function>pg_create_physical_replication_slot(<parameter>slot_name</parameter> <type>name</type> <optional>, <parameter>immediately_reserve</> <type>boolean</>, <parameter>temporary</> <type>boolean</> </optional>)</function></literal>
18469
18469
</entry>
18470
18470
<entry>
18471
18471
(<parameter>slot_name</parameter> <type>name</type>, <parameter>xlog_position</parameter> <type>pg_lsn</type>)
@@ -18478,7 +18478,11 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18478
18478
the <acronym>LSN</> is reserved on first connection from a streaming
18479
18479
replication client. Streaming changes from a physical slot is only
18480
18480
possible with the streaming-replication protocol —
18481
- see <xref linkend="protocol-replication">. This function corresponds
18481
+ see <xref linkend="protocol-replication">. The optional third
18482
+ parameter, <parameter>temporary</>, when set to true, specifies that
18483
+ the slot should not be permanently stored to disk and is only meant
18484
+ for use by current session. Temporary slots are also
18485
+ released upon any error. This function corresponds
18482
18486
to the replication protocol command <literal>CREATE_REPLICATION_SLOT
18483
18487
... PHYSICAL</literal>.
18484
18488
</entry>
@@ -18505,15 +18509,19 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
18505
18509
<indexterm>
18506
18510
<primary>pg_create_logical_replication_slot</primary>
18507
18511
</indexterm>
18508
- <literal><function>pg_create_logical_replication_slot(<parameter>slot_name</parameter> <type>name</type>, <parameter>plugin</parameter> <type>name</type>)</function></literal>
18512
+ <literal><function>pg_create_logical_replication_slot(<parameter>slot_name</parameter> <type>name</type>, <parameter>plugin</parameter> <type>name</type> <optional>, <parameter>temporary</> <type>boolean</></optional> )</function></literal>
18509
18513
</entry>
18510
18514
<entry>
18511
18515
(<parameter>slot_name</parameter> <type>name</type>, <parameter>xlog_position</parameter> <type>pg_lsn</type>)
18512
18516
</entry>
18513
18517
<entry>
18514
18518
Creates a new logical (decoding) replication slot named
18515
18519
<parameter>slot_name</parameter> using the output plugin
18516
- <parameter>plugin</parameter>. A call to this function has the same
18520
+ <parameter>plugin</parameter>. The optional third
18521
+ parameter, <parameter>temporary</>, when set to true, specifies that
18522
+ the slot should not be permanently stored to disk and is only meant
18523
+ for use by current session. Temporary slots are also
18524
+ released upon any error. A call to this function has the same
18517
18525
effect as the replication protocol command
18518
18526
<literal>CREATE_REPLICATION_SLOT ... LOGICAL</literal>.
18519
18527
</entry>
0 commit comments