Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIeZa-0004Wt-66 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2023 23:43:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pIeZZ-0002Xr-1n for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Jan 2023 23:43:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIeZY-0002Xi-P7 for pgsql-hackers@lists.postgresql.org; Thu, 19 Jan 2023 23:43:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pIeZW-0000Hy-DH for pgsql-hackers@lists.postgresql.org; Thu, 19 Jan 2023 23:43:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 30JNhqDU291750; Thu, 19 Jan 2023 18:43:52 -0500 From: Tom Lane To: sirisha chamarthi cc: Kyotaro Horiguchi , bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Fix GetWALAvailability function code comments for WALAVAIL_REMOVED return value In-reply-to: References: <20221020.115946.1240575541659272220.horikyota.ntt@gmail.com> Comments: In-reply-to sirisha chamarthi message dated "Thu, 20 Oct 2022 09:40:24 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <291748.1674171832.1@sss.pgh.pa.us> Date: Thu, 19 Jan 2023 18:43:52 -0500 Message-ID: <291749.1674171832@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk sirisha chamarthi writes: > On Wed, Oct 19, 2022 at 7:59 PM Kyotaro Horiguchi > wrote: >> In short, the proposed fix alone seems fine to me. If we want to show >> further details, I would add a bit as follows. >> >> | * * WALAVAIL_REMOVED means it has been removed. A replication stream on >> | * a slot with this LSN cannot continue. Note that the affected >> | * processes have been terminated by checkpointer, too. > Thanks for your comments! Attached the patch with your suggestions. Pushed with a bit of additional wordsmithing. I thought "have been" was a bit too strong of an assertion considering that this function does not pay any attention to the actual state of any processes, so I made it say "should have been". regards, tom lane