8000 doc: Clarify meaning of "idle" in idle_replication_slot_timeout. · postgres/postgres@110e6dc · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit 110e6dc

Browse files
committed
doc: Clarify meaning of "idle" in idle_replication_slot_timeout.
This commit updates the documentation to clarify that "idle" in idle_replication_slot_timeout means the replication slot is inactive, that is, not currently used by any replication connection. Without this clarification, "idle" could be misinterpreted to mean that the slot is not advancing or that no data is being streamed, even if a connection exists. Back-patch to v18 where idle_replication_slot_timeout was added. Author: Laurenz Albe <laurenz.albe@cybertec.at> Reviewed-by: David G. Johnston <david.g.johnston@gmail.com> Reviewed-by: Gunnar Morling <gunnar.morling@googlemail.com> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Reviewed-by: Fujii Masao <masao.fujii@gmail.com> Discussion: https://postgr.es/m/CADGJaX_0+FTguWpNSpgVWYQP_7MhoO0D8=cp4XozSQgaZ40Odw@mail.gmail.com Backpatch-through: 18
1 parent 05dedf4 commit 110e6dc

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

doc/src/sgml/config.sgml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4618,10 +4618,12 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows
46184618
</term>
46194619
<listitem>
46204620
<para>
4621-
Invalidate replication slots that have remained idle longer than this
4622-
duration. If this value is specified without units, it is taken as
4623-
seconds. A value of zero (the default) disables the idle timeout
4624-
invalidation mechanism. This parameter can only be set in the
4621+
Invalidate replication slots that have remained inactive (not used by
4622+
a <link linkend="protocol-replication">replication connection</link>)
4623+
for longer than this duration.
4624+
If this value is specified without units, it is taken as seconds.
4625+
A value of zero (the default) disables the idle timeout
4626+
invalidation mechanism. This parameter can only be set in the
46254627
<filename>postgresql.conf</filename> file or on the server command
46264628
line.
46274629
</para>

doc/src/sgml/system-views.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,7 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
30033003
<listitem>
30043004
<para>
30053005
<literal>idle_timeout</literal> means that the slot has remained
3006-
idle longer than the configured
3006+
inactive longer than the configured
30073007
<xref linkend="guc-idle-replication-slot-timeout"/> duration.
30083008
</para>
30093009
</listitem>

src/backend/replication/slot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ InvalidatePossiblyObsoleteSlot(uint32 possible_causes,
18921892
* max_slot_wal_keep_size is set to -1 and
18931893
* idle_replication_slot_timeout is set to 0 during the binary
18941894
* upgrade. See check_old_cluster_for_valid_slots() where we ensure
1895-
* that no invalidated before the upgrade.
1895+
* that no slot was invalidated before the upgrade.
18961896
*/
18971897
Assert(!(*invalidated && SlotIsLogical(s) && IsBinaryUpgrade));
18981898

0 commit comments

Comments
 (0)
0