mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Corrections to replication slots code and documentation.
Andres Freund, per a report from Vik Faering
This commit is contained in:
@ -16317,10 +16317,10 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
|
||||
<indexterm>
|
||||
<primary>pg_create_physical_replication_slot</primary>
|
||||
</indexterm>
|
||||
<literal><function>pg_create_physical_replication_slot(<parameter>slotname</parameter> <type>text</type>, <parameter>plugin</parameter> <type>text</type>)</function></literal>
|
||||
<literal><function>pg_create_physical_replication_slot(<parameter>slotname</parameter> <type>name</type>)</function></literal>
|
||||
</entry>
|
||||
<entry>
|
||||
(<parameter>slotname</parameter> <type>text</type>, <parameter>xlog_position</parameter> <type>pg_lsn</type>)
|
||||
(<parameter>slotname</parameter> <type>name</type>, <parameter>xlog_position</parameter> <type>pg_lsn</type>)
|
||||
</entry>
|
||||
<entry>
|
||||
Creates a new physical replication slot named
|
||||
@ -16335,10 +16335,10 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
|
||||
<indexterm>
|
||||
<primary>pg_drop_replication_slot</primary>
|
||||
</indexterm>
|
||||
<literal><function>pg_drop_replication_slot(<parameter>slotname</parameter> <type>text</type>)</function></literal>
|
||||
<literal><function>pg_drop_replication_slot(<parameter>slotname</parameter> <type>name</type>)</function></literal>
|
||||
</entry>
|
||||
<entry>
|
||||
(<parameter>slotname</parameter> <type>text</type>)
|
||||
<type>void</type>
|
||||
</entry>
|
||||
<entry>
|
||||
Drops the physical or logical replication slot
|
||||
|
@ -935,7 +935,7 @@ postgres=# SELECT * FROM pg_create_physical_replication_slot('node_a_slot');
|
||||
postgres=# SELECT * FROM pg_replication_slots;
|
||||
slot_name | slot_type | datoid | database | active | xmin | restart_lsn
|
||||
-------------+-----------+--------+----------+--------+------+-------------
|
||||
node_a_slot | physical | 0 | | f | |
|
||||
node_a_slot | physical | | | f | |
|
||||
(1 row)
|
||||
</programlisting>
|
||||
To configure the standby to use this slot, <varname>primary_slotname</>
|
||||
|
Reference in New Issue
Block a user