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.96) (envelope-from ) id 1wDFGH-002m3L-08 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Apr 2026 05:27:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wDFGG-003ymp-1A for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Apr 2026 05:27:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wDFGF-003ymh-24 for pgsql-hackers@lists.postgresql.org; Thu, 16 Apr 2026 05:27:32 +0000 Received: from m16.mail.163.com ([220.197.31.3]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wDFG8-00000001GOd-3u1r for pgsql-hackers@lists.postgresql.org; Thu, 16 Apr 2026 05:27:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Message-ID:Date:MIME-Version:Subject:To:From: Content-Type; bh=+gsZYpMdylWAcAga+7pQKe9UfHq7/XYZXEITFi/3PmY=; b=MQwy5sIBNjaevJhA3lk3GGhqh5dK4M3sa9PEvBg02tczHPeGWiEK19bZHTI5Pg SZ7FO/7pZWQSJITER12Sl3X0WkGuboB8IMSuwifK4BwQ01Mvn4LUhKPVXJ1VsIhA 4v84wOIu+3Ry7xWQBHqmSzj/88qPPtKlrv/6iQaqYl+ug= Received: from [192.168.9.52] (unknown []) by gzga-smtp-mtada-g0-4 (Coremail) with SMTP id _____wDn36cyc+BpExTAFQ--.4306S2; Thu, 16 Apr 2026 13:27:14 +0800 (CST) Message-ID: <9cbbd8fc-4e46-495d-8260-a267196a1826@163.com> Date: Thu, 16 Apr 2026 13:27:13 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Use XLogRecPtrIsValid() instead of negated XLogRecPtrIsInvalid To: Fujii Masao , vignesh C Cc: PostgreSQL Hackers References: From: Xiaopeng Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CM-TRANSID: _____wDn36cyc+BpExTAFQ--.4306S2 X-Coremail-Antispam: 1Uf129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UbIYCTnIWIevJa73UjIFyTuYvjxUbYL9UUUUU X-Originating-IP: [124.133.18.218] X-CM-SenderInfo: 5z0sslisy6il2tof0z/xtbCwhJ7O2ngczJIXgAA3O List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 在 2026/4/16 12:11, Fujii Masao 写道: > On Mon, Apr 13, 2026 at 4:10 PM vignesh C wrote: >> I felt these also should be updated, the attached v2 version patch >> includes the changes for the same. > Thanks for updating the patch! > > - applyPtr = (latestApplyPtr == InvalidXLogRecPtr) ? > + applyPtr = (XLogRecPtrIsInvalid(latestApplyPtr)) ? > > XLogRecPtrIsValid() should be used here, instead? > > Regards, > Yeah, I was about to raise the same comment, and Fujii-san beat me. I believe it should be XLogRecPtrIsValid(). Otherwise, the patch looks good to me. Regards, Xiaopeng Wang