Skip to content

Commit 14413d0

Browse files
committed
doc: Remove incorrect description about dropping replication slots.
pg_drop_replication_slot() can drop replication slots created on a different database than the one where it is executed. This behavior has been in place since PostgreSQL 9.4, when pg_drop_replication_slot() was introduced. However, commit ff539d mistakenly added the following incorrect description in the documentation: For logical slots, this must be called when connected to the same database the slot was created on. This commit removes that incorrect statement. A similar mistake was also present in the documentation for the DROP_REPLICATION_SLOT command, which has now been corrected as well. Back-patch to all supported versions. Author: Hayato Kuroda <kuroda.hayato@fujitsu.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/OSCPR01MB14966C6BE304B5BB2E58D4009F5DE2@OSCPR01MB14966.jpnprd01.prod.outlook.com Backpatch-through: 13
1 parent 00b52c3 commit 14413d0

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

doc/src/sgml/func.sgml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29452,8 +29452,7 @@ postgres=# SELECT '0/0'::pg_lsn + pd.segment_number * ps.setting::int + :offset
2945229452
<para>
2945329453
Drops the physical or logical replication slot
2945429454
named <parameter>slot_name</parameter>. Same as replication protocol
29455-
command <literal>DROP_REPLICATION_SLOT</literal>. For logical slots, this must
29456-
be called while connected to the same database the slot was created on.
29455+
command <literal>DROP_REPLICATION_SLOT</literal>.
2945729456
</para></entry>
2945829457
</row>
2945929458

doc/src/sgml/protocol.sgml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2802,8 +2802,6 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
28022802
<listitem>
28032803
<para>
28042804
Drops a replication slot, freeing any reserved server-side resources.
2805-
If the slot is a logical slot that was created in a database other than
2806-
the database the walsender is connected to, this command fails.
28072805
</para>
28082806

28092807
<variablelist>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy