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 1rLXP1-008WWR-UM for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Jan 2024 23:45:31 +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 1rLXP0-00GHNY-KM for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Jan 2024 23:45:30 +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 1rLXP0-00GHLm-Aq for pgsql-bugs@lists.postgresql.org; Thu, 04 Jan 2024 23:45:30 +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 1rLXOx-00Dlqo-MZ for pgsql-bugs@lists.postgresql.org; Thu, 04 Jan 2024 23:45:29 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 15F125C018D; Thu, 4 Jan 2024 18:45:27 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Thu, 04 Jan 2024 18:45:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1704411927; x=1704498327; bh=LbUBzEucvE O3imYi1vsjAp5+twzMlc8qOKfQX4i3wE4=; b=2vVy0TXFgTK8EEUcfmZkatmjSl m5vsyrhuz3HU2dB061XkqLmQ1hEwA2GqY0rVixV820LtGBulxFDLsL0sxXCJpxLp HGB1BCFxTVZQZlFtPaHe/KOmSfDJc3oYQy/HrvGrSDJp4nZn5ChQTWbwEqzU0lu2 dzfNXXonKjOeiPf+ITU/prW6+rP1Z5aBLMjYLb4LF+Ypw7ZkdICZInjTtEsv/OCv d8MMJy9WhwshR6FU2Ug2odzdY1hshM8Hynzui/0CPjCnLNQ13zBXY4Gh5HNR25zN 1ZSOI2FTeh5AkCo8VVmr0uBwm9BglY2m3L5hy6StZgC9YWEjDnvy4owN8D2w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1704411927; x=1704498327; bh=LbUBzEucvEO3imYi1vsjAp5+twzM lc8qOKfQX4i3wE4=; b=5571lKS2GYi/cOQBe5sSOtNU5pjcuON/ExQhRHoc/y2/ tuwDlPWqbiB7PR4LABCbsa7w749wZECcTz8kVQ4wrblZv+5wqYR3GmSFFMbD4KNR cDpDPf16YM5aJTAiw1CGoPQwMVa7+YvrDJauDdeaazqKcN8YXZAdeIYETzRZYDIS DAH+pB4ybwZJIATnE3lgKUJMqjH+lP95wMRA7ccj7yoloa4r2aEaeD5Y27sIVgxN GrUeBBawHUZByVtdr/2sxZCQmSeFQNtKHU+n5bHdMxkx6OsGZ+3rv7Hxp7LlaMTV SrTPpPb0zJUTZIICjBB0HbnBk5yxaSN8hqDowTx2qg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdegkedgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 4 Jan 2024 18:45:25 -0500 (EST) Date: Fri, 5 Jan 2024 08:45:13 +0900 From: Michael Paquier To: Andres Freund Cc: Richard Guo , tender wang , Alexander Lakhin , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition Message-ID: References: <18259-6e256429825dd435@postgresql.org> <09677462-ed4c-2b2c-7918-8a3961dc772a@gmail.com> <20240104185658.mniixu3lblpdqssz@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nHPe4r+u4PLBjngd" Content-Disposition: inline In-Reply-To: <20240104185658.mniixu3lblpdqssz@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --nHPe4r+u4PLBjngd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 04, 2024 at 10:56:58AM -0800, Andres Freund wrote: > But perhaps this could actually serve as a good first case for Michael's > failure injection patch? A failure injection to make > FileFallocate()/FileZero() fail should just be a few lines. >=20 > We generally have pretty much no coverage for out-of-space, partial > read/write, EINTR of file operations, because that's hard to do with the > current test infrastructure. So this might be a nice first case. Indeed. This one should be fairly simple with a single session, a couple of SQLs and an ERROR callback. -- Michael --nHPe4r+u4PLBjngd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmWXQwkACgkQnvQgOdby QH20vw//evaJk0QoEWym8He3WDGvvEYnsFZFEtNfY8CH1D9gK6GUSqdOtSAsgv0l OwlepesxqC2Q+OE+ZdvQZa0MnShnr5yqEXD+kN9JxPkZW2srCUQp+viFE9I4W26+ 9gIK5qJD5ioi5c3Bpdy7VJ/o08kxdb4nsq1iXAG8E8JBGdnVuuVZovv0LKZz44sT kjlDVN05MNNAKdkbsiknJFCM4CdA0jOxBeJRBNTRUKjlUS49e5kDu1s1EmvCNNTt WCT0xMlg7kSYNNM9AY43mAI+fbUX4BoO2y+mUPYKozwXKSljNftuf0e+aPt2wwEb v59LioQTsDm7H+ZFa1ugaYlHRMV5PR3QePLJFNsM9jRWToJvFLwQyCpWJd2uLPBA 6UNF6qOEYfwxra2RZK/zAlFwEwr3f63dbejvITOGE9N60TCa3upqRUo0uw0JH7V9 ljFEVYwM86z6SPf7b9kStmiqgW/oBT6jFvIMcQSklwuxavopARiNO+yECeSHUtt+ 4jTKnxEH+g2RpN11bKU7J0S5tOHBtENi/S/3qmTLKRTOZqz+UMBipRQlMR1Vxits y9dt+5tY0aO2u3Cs/1uB3ZY/v6Takp/XuEO5Uu1c733AwTTnOhWKlI5vv9M8UWB7 g4CXR1gE5nDwfCmaZz3pxXL1nqhSKHpNNM+UsfwxYLbccblXax8= =sHF/ -----END PGP SIGNATURE----- --nHPe4r+u4PLBjngd--