Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit97ce4d3

Browse files
committed
doc: Remove incorrect description about dropping replication slots.
pg_drop_replication_slot() can drop replication slots created ona different database than the one where it is executed. This behaviorhas been in place since PostgreSQL 9.4, when pg_drop_replication_slot()was introduced.However, commit ff539d mistakenly added the following incorrectdescription 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 wasalso present in the documentation for the DROP_REPLICATION_SLOTcommand, 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.comBackpatch-through: 13
1 parent9de86e3 commit97ce4d3

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
@@ -29045,8 +29045,7 @@ postgres=# SELECT '0/0'::pg_lsn + pd.segment_number * ps.setting::int + :offset
2904529045
<para>
2904629046
Drops the physical or logical replication slot
2904729047
named <parameter>slot_name</parameter>. Same as replication protocol
29048-
command <literal>DROP_REPLICATION_SLOT</literal>. For logical slots, this must
29049-
be called while connected to the same database the slot was created on.
29048+
command <literal>DROP_REPLICATION_SLOT</literal>.
2905029049
</para></entry>
2905129050
</row>
2905229051

‎doc/src/sgml/protocol.sgml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2660,8 +2660,6 @@ psql "dbname=postgres replication=database" -c "IDENTIFY_SYSTEM;"
26602660
<listitem>
26612661
<para>
26622662
Drops a replication slot, freeing any reserved server-side resources.
2663-
If the slot is a logical slot that was created in a database other than
2664-
the database the walsender is connected to, this command fails.
26652663
</para>
26662664

26672665
<variablelist>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp