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 1r8ONK-009eKO-6P for pgsql-general@arkaria.postgresql.org; Wed, 29 Nov 2023 17:29:26 +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 1r8ONI-00C3bW-EI for pgsql-general@arkaria.postgresql.org; Wed, 29 Nov 2023 17:29:24 +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.94.2) (envelope-from ) id 1r8ONH-00C3bO-P7 for pgsql-general@lists.postgresql.org; Wed, 29 Nov 2023 17:29:24 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r8ONE-007yMr-Kz for pgsql-general@lists.postgresql.org; Wed, 29 Nov 2023 17:29:22 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 7D1905C01CC; Wed, 29 Nov 2023 12:29:19 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 29 Nov 2023 12:29:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1701278959; x= 1701365359; bh=ZPD0rOy7RJcPjNvs37AAq88KVmEzEGS+4xES2pETDh4=; b=r nZE9EWKviSPf7y3VK5Y6Mksrcnmmd2tCZ/SHQyPpqVM86Bvpod1K0UGUFiUPpug2 XVBdRShNHCJtQgtBL8vsBtshMVwiu7cRryExWfDsBhdRdd1+e4hgQ0lgj0QNXZ1O 3KpiZc7SJHfcSBHP6EaAqpcibhV2QQSlDyCzkGFP2m2eLORk8nRMtmVgr16C+T5m 78VAwSUM9RuRNoEmSiKejtF9lmyXnbKU9tm++ABYpcXmOYhXJf/3W6L1U8c/zg9C voYceSk4uK68EuLD33TYlz593OvOQXc8HN4F493Sqn9sdM6aHf2jG6EZiM9COwGu D0vPyVUIo1OEGLNtY4Ksg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudeihedguddttdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvfevuffkgggtugfgjgesth ekredttddtjeenucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghr rhgvsegrlhhvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffud fftdffffehfffhjeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhn pegvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdho rhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Nov 2023 12:29:18 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1701278955; bh=PkNQvjgAlI1+7XJa18qMkyPDC34lH160fApcgPWr5dg=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=S+aR+aOAP77n67bS1mVBauJ/mCrW5k+rXSetFbIsjMDe8JPz1BFLOl2se4JZoYp3K du2CReXHCS8F4CLUysStjxWI7oum0lr3pMFrC65d31JoImGJWClYGkH8wPzBA+ZXgQ oAJ5G80DcDt6XBlVoekPiB6yF81Qlht2RhRRPJ94mZe43f9x95T1f5owbhnIzmlMVS PaChK38YF6TW6J7fCbK7cCNaGpHyr6m55wE9KiEMqLwXuW9vpDVsSG7Ik4pjmkHlAv eUD5IUwYcI/eyuPRpr2H8EiESLfrzoSJ+LFz2UAyWI4cZl+Gma4/24uQp1be+ITbnd QABPOhwzkGeuA== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 91C4412F; Wed, 29 Nov 2023 18:29:15 +0100 (CET) Date: Wed, 29 Nov 2023 18:29:15 +0100 From: Alvaro Herrera To: Kyotaro Horiguchi Cc: laurenz.albe@cybertec.at, sri@ebi.ac.uk, pgsql-general@lists.postgresql.org Subject: Re: Could not read from file "pg_subtrans/00F5" at offset 122880: Success. Message-ID: <202311291729.d375fgxfxmlp@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231128.175443.1171037512392479311.horikyota.ntt@gmail.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Nov-28, Kyotaro Horiguchi wrote: > By the way, just out of curiosity, but errno should not be zero at the > time the message above was output, yet "%m" is showing "success", > which implies errno = 0 in Linux. How can that happen? If the file is exactly of the length given then seek will work, and read will not set errno but return a length of 0 bytes. So SlruPhysicalReadPage sets SLRU_READ_FAILED and then in pg11 the %m in SlruReportIOError expands to "Success". The code in master is completely different (it uses pg_pread rather than seek + read): it does test for errno and reports accordingly. So, nothing to do here. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/