postgresql/src/include/replication
Fujii Masao 05dedf43d3 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 <gunnar.morling@googlemail.com>
Author: Fujii Masao <masao.fujii@gmail.com>
Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at>
Reviewed-by: David G. Johnston <david.g.johnston@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CADGJaX_0+FTguWpNSpgVWYQP_7MhoO0D8=cp4XozSQgaZ40Odw@mail.gmail.com
Backpatch-through: 18
2025-07-11 08:39:24 +09:00
..
conflict.h Detect and Log multiple_unique_conflicts type conflict. 2025-03-24 12:30:44 +05:30
decode.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
logical.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
logicallauncher.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
logicalproto.h Change publication's publish_generated_columns option type to enum. 2025-01-23 15:28:37 +05:30
logicalrelation.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
logicalworker.h Rename some signal and interrupt handling functions for consistency 2025-03-05 16:22:26 +02:00
message.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
origin.h Remove pg_replication_origin's TOAST table. 2025-05-07 14:47:36 -05:00
output_plugin.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
pgoutput.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
reorderbuffer.h Fix re-distributing previously distributed invalidation messages during logical decoding. 2025-06-16 17:36:01 -07:00
slot.h Change unit of idle_replication_slot_timeout to seconds. 2025-07-11 08:39:24 +09:00
slotsync.h pg_noreturn to replace pg_attribute_noreturn() 2025-03-13 12:37:26 +01:00
snapbuild.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
snapbuild_internal.h pg_logicalinspect: Fix possible crash when passing a directory path. 2025-03-11 09:56:40 -07:00
syncrep.h Return yyparse() result not via global variable 2025-01-24 06:55:39 +01:00
walreceiver.h Use standard die() signal handler in walreceiver 2025-04-04 12:38:32 +03:00
walsender.h Update copyright for 2025 2025-01-01 11:21:55 -05:00
walsender_private.h Fix race with synchronous_standby_names at startup 2025-04-11 10:00:21 +09:00
worker_internal.h Update copyright for 2025 2025-01-01 11:21:55 -05:00