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 1uXKgd-008Zot-KP for pgsql-docs@arkaria.postgresql.org; Thu, 03 Jul 2025 14:13:15 +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 1uXKgb-00Dq03-KG for pgsql-docs@arkaria.postgresql.org; Thu, 03 Jul 2025 14:13:14 +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 1uXKgb-00Dpzt-CH for pgsql-docs@lists.postgresql.org; Thu, 03 Jul 2025 14:13:14 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uXKgZ-005W7w-2l for pgsql-docs@lists.postgresql.org; Thu, 03 Jul 2025 14:13:13 +0000 Received: from [192.168.11.9] (p1696134-ipoe.ipoe.ocn.ne.jp [118.0.93.133]) by oss.nttdata.com (Postfix) with ESMTPSA id AE41C61BAD; Thu, 3 Jul 2025 23:13:07 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <2016d3c0-0106-400c-91a1-80a21518fded@oss.nttdata.com> Date: Thu, 3 Jul 2025 23:13:05 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Mention idle_replication_slot_timeout in pg_replication_slots docs From: Fujii Masao To: Nisha Moond Cc: pgsql-docs@lists.postgresql.org References: <78b34e84-2195-4f28-a151-5d204a382fdd@oss.nttdata.com> <938e2d16-4449-413b-a2fc-2595e732e3e1@oss.nttdata.com> <8147005b-42b5-47d5-84a4-53965568fd6a@oss.nttdata.com> <95d064d7-9902-436c-a4d2-a1155e4208c2@oss.nttdata.com> Content-Language: en-US In-Reply-To: <95d064d7-9902-436c-a4d2-a1155e4208c2@oss.nttdata.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025/07/02 16:12, Fujii Masao wrote: > > > On 2025/07/01 13:52, Nisha Moond wrote: >> On Mon, Jun 30, 2025 at 6:12 PM Fujii Masao wrote: >>> Is this true starting from v16, when logical replication from standby was introduced? >>> In other words, in v15 and earlier, only max_slot_wal_keep_size could cause >>> the wal_status to become "unreserved" or "lost"? I'm wondering where to back-patch >>> this fix to. >>> >> >> I also think we should back-patch this till v16, since that’s when >> additional slot invalidation causes were also introduced(commit >> be87200). And since then “max_slot_wal_keep_size” is no longer the >> sole reason for “unreserved” or “lost” status. > > Okay, I've prepared two patches: > > - 0001 removes the incorrect line: "If restart_lsn is NULL, this field is null." >   This should be back-patched to v13. > - 0002 updates the description of the wal_status to reflect that max_slot_wal_keep_size >   is not the only cause of the lost state. This should be back-patched to v16. > > Barrng objections, I will commit these patches. I've pushed the patches. Thanks! Regards, -- Fujii Masao NTT DATA Japan Corporation