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 1pK7Tf-00069F-GV for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Jan 2023 00:47:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pK7Te-0002DW-Ej for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Jan 2023 00:47:54 +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 1pK7Te-0002DH-5o for pgsql-hackers@lists.postgresql.org; Tue, 24 Jan 2023 00:47:54 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pK7Tb-0008Bb-LP for pgsql-hackers@lists.postgresql.org; Tue, 24 Jan 2023 00:47:52 +0000 Received: by mail-pj1-x1032.google.com with SMTP id b10so13324633pjo.1 for ; Mon, 23 Jan 2023 16:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=Ebj01BNDORQy0XMlTpwC0sbXByTKfi3BuKwadsgdxqc=; b=YJJ9qvSsUJGWahPhhmN7RinTridMEWOVGCmmGowX7WT+Go4hRuolkEIm41i0m8yLP3 ELzsi3tG5iHV7llyjfHvUCgdHJbaljLvMFkhCKKm5kwR5M4Bo2Ng/tiY2Rf53/nffK0u HvuySomOu9iKaIDLJe+qkfJE5BoGK5BZ6MZPUMQNK/i9Lx6RR7eYNoVy2yDsGB1pvxC2 XoMeOupEntgL22EafcND099p/0GAwx4HhWL0V0vnrt+qEJ5UCmSiQ6624mfb3epzGdgw h5vYyWCtdKqNVjGnthq1Obldh1P65PIULIB1XUSOdOQmVXReKa0U+0IxXWmJZ7SUQnh2 cZSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Ebj01BNDORQy0XMlTpwC0sbXByTKfi3BuKwadsgdxqc=; b=W+LPo4WS02ScPEdI0T3tP7nxq/O3vras476UrlXK5I2xZQUlDe5MLQbDQnv5y4TqH/ NREVUgQVMBgIkZe7ZYG0UQFlPN99Rc+5QeUeu5fl2yk35py0y3IfR3N5PGTTHJDiLC0u y8miL0RrOMoQvc6SCSnkyl3GYUBBCy6CMmndPHlYfxwKF+evY2lJQw8PKapGBukzEZuR R+aU/wThTqFvkhebIbiLVrR42+QxjWChj8P0neCzvXZTQzkTG1FV1Uu/GdxdNlh48z7/ nkfRGW/d0YBZjdZyM3GMJL9aBAglaK6lXp+li5+nE9uVLijIZNtCDLJ0DJwTeIknU9At nWJQ== X-Gm-Message-State: AFqh2kq80+dPO9h/3s1F/9sMKiv8g2J/yC8+TNmDsZLxtTMXC+z5FZBe 6Upyx1eWeR/4jYckBA6BGxo= X-Google-Smtp-Source: AMrXdXtetBCm1c7fueFERIfqi5/ogMe9dBTYUjrliXusX6FziSb+uWBv346vXLEKC+JJ7QTz/sQnZA== X-Received: by 2002:a17:902:f0d1:b0:192:8c85:54fa with SMTP id v17-20020a170902f0d100b001928c8554famr42481859pla.31.1674521270502; Mon, 23 Jan 2023 16:47:50 -0800 (PST) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id i18-20020a17090332d200b00192f4fbdeb5sm311179plr.102.2023.01.23.16.47.48 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 23 Jan 2023 16:47:49 -0800 (PST) Date: Tue, 24 Jan 2023 09:47:47 +0900 (JST) Message-Id: <20230124.094747.1325518642290848983.horikyota.ntt@gmail.com> To: tgl@sss.pgh.pa.us Cc: sirichamarthi22@gmail.com, bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: Fix GetWALAvailability function code comments for WALAVAIL_REMOVED return value From: Kyotaro Horiguchi In-Reply-To: <291749.1674171832@sss.pgh.pa.us> References: <20221020.115946.1240575541659272220.horikyota.ntt@gmail.com> <291749.1674171832@sss.pgh.pa.us> User-Agent: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Thu, 19 Jan 2023 18:43:52 -0500, Tom Lane wrote in > 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" Thanks! > 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". I think you're correct here. regards. -- Kyotaro Horiguchi NTT Open Source Software Center