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 1wXAwj-0036ZD-1G for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 04:53:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wXAwi-009ADP-0k for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jun 2026 04:53:44 +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.96) (envelope-from ) id 1wXAwg-0099vB-2X for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 04:53:42 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wXAwe-00000002GsP-2WCH for pgsql-hackers@lists.postgresql.org; Wed, 10 Jun 2026 04:53:42 +0000 Received: by mail-pj1-x1035.google.com with SMTP id 98e67ed59e1d1-36da8439078so5611209a91.2 for ; Tue, 09 Jun 2026 21:53:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781067218; x=1781672018; darn=lists.postgresql.org; 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=k0AIfiQ5suRTDXu+2c9PAS3LqFSGHGSvHFsdNv61EDM=; b=EMYNrgc/886qFLMQt57AqsLLlXysxH1634ACvnrKk556r/3/0b/tMtALm6YSTFzT5D mCkrCR3UeBqfPgwtrx92CRQCG3qPIWBLyd8RanT11Tv+mA+dcY2o2kV/XnNI1OR3OCjN YLI7S/PoiBj9Z1u7DqpbT8zuk9hRtLwVyHrQXI3ocKROlhqM8VmbxrzSNPet7ImCDevm l5Y5O54fVT0oqBxgNK5smiZ3OXSV99fL66M4DXS2lN9ng52zlAutNbgs41el4eexU79E yxTqPuqvYmE2B/jmVgBe3wnfcDJDfZuuw3lA06OuLjGb3XdRN2W/g5lblubI7nT3/uNr xg1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781067218; x=1781672018; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=k0AIfiQ5suRTDXu+2c9PAS3LqFSGHGSvHFsdNv61EDM=; b=rwLQkfdpScbSiG3E3AWX+/u51FNw9gAVv1TSC9Wz1/R/t58vG7gE7jzILj+L5A2ALd Ex81facLPz1KPJEcuWe0J/T4hH2VPIJVowO7IE8gn6gbHNnolpvPHRNFfuhlU91TynC5 vQlHbwrDfti1y2LRK8tNGCFga4Qxx2vkmWyP/yK5hBUinev4K8TXJmZVoapNlVJejc5Z OumGIbj+qG3h3waq/xj6tBORU/9uxvfjRl7Z71xhBfcoUNqpTEDMrF9ancFvI6RgfFLy Ey3iz59/xm3fRSVJgxOKtKWYyHZNiFMmvGoq/FmbKSCFYXfs/WtE9XVeUu1YGr5Tdeq0 gnBg== X-Forwarded-Encrypted: i=1; AFNElJ+em78gwlxttzr+RVthtVozfNHv4OJqBOfSyOkYz9jBKzoXR2AZ2UhOIIT5ZxAhIVCC2MIEHVr8YaRUADdD@lists.postgresql.org X-Gm-Message-State: AOJu0YxTMLViEuSCl1KlKa59VXEkpl3ueKkBVA/WLFpZkIiH3h0a62Nt HN9dHUm5gK10X3i4PdVaLJnktW5rzHWlDxOkKwrBomF8HQZ2gObn7y8M X-Gm-Gg: Acq92OFvhDamnRA8WviaZsEnVedW/n463lWRRSib4pUg3zy10yzu0mxtNC3eDZAWTUR X9cQG6jP85RTsZKM6ZcTnPXTAlqcHinis+8SsznkdmtdunVps1LgmburTLho3X+8K/q8EDdUIbP dTuCGEhIdtkkuCS2vdgmLdHgBukRG1QRpLCRf/u2PLchVHf+mGAE0B6focQ8ue44vnR7vnOjjNn Q9Jt9Ew1xTv44wWBykJsSF4UCts3zIKW0W473IPQ7oxC6DTNSMgRLFz6fqym8Z7Fehu1jqcmBtg 361Z179RNm4mKyuu4tMrlKp6rys8OczBSDl5gXt68BZdGOOkrJbH8aMNeVIs5vHXcD4fqiMNNnN f56J9cqU4LlfA3uKZ1VprGQwBTYgEMKJoECE+YyeZyUEnRmwGSll2+qCY15MHmUTO9+OwZUcwoh u39We1Heae7GG5h45uU+quGNLXlrMJ9qaguqvG7M18z3kJc3Hy9BIbWV/6otkDZ2Kol+gbyFRQG B1a2NyrAA== X-Received: by 2002:a17:90a:d40f:b0:36a:a16b:5f65 with SMTP id 98e67ed59e1d1-370ef1f3d01mr25312382a91.11.1781067218141; Tue, 09 Jun 2026 21:53:38 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-37621b3d04dsm1386325a91.7.2026.06.09.21.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jun 2026 21:53:37 -0700 (PDT) Date: Wed, 10 Jun 2026 13:53:35 +0900 (JST) Message-Id: <20260610.135335.1492475965692488167.horikyota.ntt@gmail.com> To: nitinjadhavpostgres@gmail.com Cc: adam8157@gmail.com, michael@paquier.xyz, hlinnaka@iki.fi, pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Fix minRecoveryPoint not advanced past checkpoint in CreateRestartPoint From: Kyotaro Horiguchi In-Reply-To: References: User-Agent: Mew version 6.8 on Emacs 29.4 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 I tend to agree with Michael on the meaning of minRecoveryPoint. If a tool is using minRecoveryPoint to determine how far recovery has progressed, then I would say it is looking at the wrong value. I also do not quite understand what such a tool is trying to verify by comparing minRecoveryPoint with the recovery target LSN. If the goal is to verify that recovery reached the configured target, PostgreSQL already performs that check itself and exits with a FATAL error otherwise: > ereport(FATAL, > (errcode(ERRCODE_CONFIG_FILE_ERROR), > errmsg("recovery ended before configured recovery target was reached"))); If the underlying use case were explained in more detail, we could probably have a more concrete discussion about how to address it. However, I do not think changing the semantics of minRecoveryPoint is the right solution based on the information available so far. Regards. -- Kyotaro Horiguchi NTT Open Source Software Center