diff options
author | Fujii Masao | 2025-07-10 23:39:24 +0000 |
---|---|---|
committer | Fujii Masao | 2025-07-10 23:39:24 +0000 |
commit | 05dedf43d380edc98546c381e76a9d907fd19bed (patch) | |
tree | b11df129231a5cdc15cff7581ed123553124f4ef /doc/src | |
parent | a6c0bf93031dac8701b8d6c1093230dc5caf190d (diff) |
Change unit of idle_replication_slot_timeout to seconds.
Previously, the idle_replication_slot_timeout parameter used minutes
as its unit, based on the assumption that values would typically exceed
one minute in production environments. However, this caused unexpected
behavior: specifying a value below 30 seconds would round down to 0,
effectively disabling the timeout. This could be surprising to users.
To allow finer-grained control and avoid such confusion, this commit changes
the unit of idle_replication_slot_timeout to seconds. Larger values can
still be specified easily using standard time suffixes, for example,
'24h' for 24 hours.
Back-patch to v18 where idle_replication_slot_timeout was added.
Reported-by: Gunnar Morling <[email protected]>
Author: Fujii Masao <[email protected]>
Reviewed-by: Laurenz Albe <[email protected]>
Reviewed-by: David G. Johnston <[email protected]>
Reviewed-by: Amit Kapila <[email protected]>
Reviewed-by: Hayato Kuroda <[email protected]>
Reviewed-by: Tom Lane <[email protected]>
Discussion: https://postgr.es/m/CADGJaX_0+FTguWpNSpgVWYQP_7MhoO0D8=cp4XozSQgaZ40Odw@mail.gmail.com
Backpatch-through: 18
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/config.sgml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index 59a0874528a..bd12225cbe4 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -4620,7 +4620,7 @@ restore_command = 'copy "C:\\server\\archivedir\\%f" "%p"' # Windows <para> Invalidate replication slots that have remained idle longer than this duration. If this value is specified without units, it is taken as - minutes. A value of zero (the default) disables the idle timeout + seconds. A value of zero (the default) disables the idle timeout invalidation mechanism. This parameter can only be set in the <filename>postgresql.conf</filename> file or on the server command line. |