1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-18 02:02:55 +03:00

doc: clarify "physical" replication slot creation on the primary

Previously it was not clear that "physical" replication slots were being
discussed, and that they needed to be created on the primary and not the
standby.

Backpatch-through: master
This commit is contained in:
Bruce Momjian
2025-11-13 20:44:00 -05:00
parent acbc9beaae
commit a5b69e3073

View File

@@ -918,13 +918,13 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass'
</sect2> </sect2>
<sect2 id="streaming-replication-slots"> <sect2 id="streaming-replication-slots">
<title>Replication Slots</title> <title>Physical Replication Slots</title>
<indexterm> <indexterm>
<primary>replication slot</primary> <primary>replication slot</primary>
<secondary>streaming replication</secondary> <secondary>streaming replication</secondary>
</indexterm> </indexterm>
<para> <para>
Replication slots provide an automated way to ensure that the Physical replication slots provide an automated way to ensure that the
primary server does primary server does
not remove WAL segments until they have been received by all standbys, not remove WAL segments until they have been received by all standbys,
and that the primary does not remove rows which could cause a and that the primary does not remove rows which could cause a
@@ -978,7 +978,7 @@ primary_conninfo = 'host=192.168.1.50 port=5432 user=foo password=foopass'
<sect3 id="streaming-replication-slots-config"> <sect3 id="streaming-replication-slots-config">
<title>Configuration Example</title> <title>Configuration Example</title>
<para> <para>
You can create a replication slot like this: You can create a physical replication slot on the primary like this:
<programlisting> <programlisting>
postgres=# SELECT * FROM pg_create_physical_replication_slot('node_a_slot'); postgres=# SELECT * FROM pg_create_physical_replication_slot('node_a_slot');
slot_name | lsn slot_name | lsn