Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uXya2-00Grkm-SS for pgsql-bugs@arkaria.postgresql.org; Sat, 05 Jul 2025 08:49:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uXyZ0-003o9o-G0 for pgsql-bugs@arkaria.postgresql.org; Sat, 05 Jul 2025 08:48:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uXyZ0-003o9Y-5j for pgsql-bugs@lists.postgresql.org; Sat, 05 Jul 2025 08:48:02 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uXyYy-005rSd-11 for pgsql-bugs@lists.postgresql.org; Sat, 05 Jul 2025 08:48:02 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-ae3a604b43bso248734866b.0 for ; Sat, 05 Jul 2025 01:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1751705278; x=1752310078; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=HgEIMugqD13OAmDKqTRY9oOrI3hMfuPCVBlR7EsQgN8=; b=aUTaztVLQFtPaWw1C9Rou6R4KlUE3qDYHWDNXMhmDk+yxy2mnNB4Bfa36njmHhjP8+ UBPnGDr0UiZO5Vp1WRdqaN87lezQ3KOsnQIupmIjJbd2qyWmVtXh/wX7M2cBmqJjUjhj vmm6Yz22AprjGCSqFGHFSFgtonnOPxUIKcZRbqLWn8N5SzkX+6BfttwBapl3fBfo2/bT 37kmv0dnRGpnWYXbCntmp6syv09X+lEjrUmZMNg5pt30dIjCtuJkdgLsjaeQRyTOKaXQ m94XUlxExDTSYjtzSfZQ9qeHeZz/JiL5/bz8Opcc5kT9ObLY0RnLqrmKzXcfGdPYzSq0 TexQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1751705278; x=1752310078; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=HgEIMugqD13OAmDKqTRY9oOrI3hMfuPCVBlR7EsQgN8=; b=Tq+9MgSOWBbAk5ZNq6jNz44cpKQHqy53De8cOiSZ5XjWgT8iEFPpsNx86bCYQoH8h1 +yGlXIwnzPggqlWvP+5WJEG1ZPwJ67NOFbbzkEstcJyog16xIHwi4ma0no/K4K7nPMhh /miYWvtaETRQXQl/OqvMwYJ0hWus7dZ8OQwsn0QOrq/YPQLua/Zc6jrneUu1l/QbFiPV lyGO0zhDwduLd1tShxVXTqJ9dYbEkO1LC79TLsfh9wR5J9YSoggSt7NuPn2llHy8ZcEh 37cXJ1ojT3kb0LrzElT1N63SkOyBzmjTotBdqu5V59ULy7OM4FzkCH5vBrXuKqIWaQEU Ol6w== X-Forwarded-Encrypted: i=1; AJvYcCXVlWM7q+LTNRiK+2kRl/o8WvaVv8wFCl4UbzURSTmxU1/dVNNc0ZcpRQdM1WBm1RDY9N2B5YZgwMw+@lists.postgresql.org X-Gm-Message-State: AOJu0YyGMcW/NTKg9m09UI80ljk2GKDHAj90hV9f+g5quM1h0ugVjvNn jtKz0w6n8mJ/894obS/gSzIOnO+n1fxtNqJQB8fk48Zz8084PW48XxdFq4jgczvhywg= X-Gm-Gg: ASbGnctdlsMb31F0IclPBnkYQIV5HBK7dfMeCJB7oaWuh/1djVrr/kEX5njIlw0YArb Lbs4Z9KQ1lKA3k6V7HvKs68hjYkJ/rzGLPDS1kRhEB8pR2mDhjWifhaTwr12ks/riDxVqUe38/k 1JqT9Z3FV3Bzdstpy0xcE8iQRd3ArEJEIysQ57SGbXMZODRFxpEYd1UBWXN2LAHdTeDpUTwzSSW 5wPYBAf48+tOvuogbYrXJ+XqwhuY09rPa/g/qRHMJSxJQR9FKcmztW5kCsfZ/wwAKd+l3ASSm3L NIs2ZrAUQ+43RjMKOAXY0hlyYD/khCRxytxtFXxhCiB130lhtLq/zk0yrKU2l+dWIQQHpYBpX4a XZuGpEPL1vOZWTHyXQzRmHUhkE7w= X-Google-Smtp-Source: AGHT+IH7YW17jBhi3+e/Uj3n+wCMqG/Co34oE/k2Ah8E6HTJHXYFdWQMvb5Te6eswUwXBiW9ADrF+Q== X-Received: by 2002:a17:907:2dab:b0:ae3:62cb:7654 with SMTP id a640c23a62f3a-ae3fbc54c72mr630455866b.17.1751705278332; Sat, 05 Jul 2025 01:47:58 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:255:52d3:3ac8:61ab:b634:342]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ae3f6b5e86fsm313077466b.147.2025.07.05.01.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Jul 2025 01:47:57 -0700 (PDT) Message-ID: Subject: Re: Unexpected behavior when setting "idle_replication_slot_timeout" From: Laurenz Albe To: "David G. Johnston" Cc: smithpb2250@gmail.com, Amit Kapila , Fujii Masao , Nisha Moond , Gunnar Morling , pgsql-bugs@lists.postgresql.org Date: Sat, 05 Jul 2025 10:47:56 +0200 In-Reply-To: References: <30e91649-06dd-453e-8658-5f4acd03a3bd@oss.nttdata.com> <686577f2379e4b978803e72746dcf0dd7baf3937.camel@cybertec.at> <3422d282fd45e460b4ce1bd0745523ba63bd3848.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-07-04 at 23:16 -0700, David G. Johnston wrote: > We should clearly document how rounding works in section 19.1.1 > (which we mostly do; "If the parameter is of integer type, a final roundi= ng > to integer occurs after any unit conversion.") and not in every > time-related setting that chooses to use something larger than microsecon= ds. > So, 30s is 'unit converted' up to 0.5 minutes (not explicitly explained..= .) > then rounded to zero (which is odd, half normally rounds up...). > I'm against cluttering up the individual settings docs with this detail. That's fine with me; do you have a patch? > If the change from idle to inactive=C2=A0is needed in the description we = should > just admit we named it wrong in the first place. I had half a mind to propose renaming the parameter, but I shied from a lengthy bikeshedding discussion. Reading up on the archives, I see that Peter Smith proposed the term "idle" in [1], and nobody had any problem with it. For the record: I would be much more happy if the parameter were called "inactive_replication_slot_timeout", since we use the term "active" in "pg_replication_slots". Also, we call connections "idle" when they are established, but doing nothing, and this parameter is about disconnected replication connections. > =C2=A0 As-is, the descrip= tion > matches the name and the callout to the field in the second paragraph > precisely clears up what this setting at least cares about.=C2=A0 The rea= der > should be directed to how that field is computed should they need clarifi= cation. >=20 > Thus, I'd accept but not find required the idle/inactive wording change t= o > any of various degrees; and would ask that any clarification regarding > generic setting value interpretation be relegated to 19.1.1 where all > such settings can benefit. I am sure that there is some information in these sentences, but I cannot extract it, even after reading them twice. Yours, Laurenz Albe [1]: https://postgr.es/m/CAHut%2BPtHbYNxPvtMfs7jARbsVcFXL1%3DC9SO3Q93NgVDg= bKN7LQ%40mail.gmail.com