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 1tNEXq-009VhT-HO for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 17:06:10 +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 1tNEXn-008u2q-H8 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 17:06:08 +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.94.2) (envelope-from ) id 1tNEXn-008u19-5G for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2024 17:06:08 +0000 Received: from fhigh-a6-smtp.messagingengine.com ([103.168.172.157]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNEXk-0000PL-8J for pgsql-hackers@postgresql.org; Mon, 16 Dec 2024 17:06:07 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id B5FA811401B7; Mon, 16 Dec 2024 12:06:02 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Mon, 16 Dec 2024 12:06:02 -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:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1734368762; x=1734455162; bh=X ptZh3oe21a0W1Z1Cc/5XAB9ur5wdl6uV8v4V/Qe210=; b=hJ/Ch62R07azefz/u 7W0okw8/ZQWyQoEXXQ73V8a2+yV8Iz1lS9dotPpAFBwugmu530jTSyAe3Rw45Vxm Ic8zMQVBo02+FYNd9WRsOrdDGoQYhy5UiWUwSz077GQ6og1tLdU+Ng90162gFczi uwNedyCKoDFnEg91KFdapuKdCTK121UehRxM/sRtCoLazObKBXRLc932EyamdzJJ Lw7KzXSmWB6cMdND8V+cvlmwOGf/3JK7LKJiiCxMi4JcQ8ppzMw0B+VgJHx8ZNgs bUKRbxxpJvCgECj29Dm3RDZEF3IGmmaFp57tKPp/e77pEeU0Dp7ju3Sse8ETvKrf JinKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrleefgdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecu hfhrohhmpeetlhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrd hnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfej jefhgfeiueeukeejkeffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprh hishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtg hpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughrvghssegr nhgrrhgriigvlhdruggvpdhrtghpthhtohephhgrrhhmihgtsehgmhgrihhlrdgtohhmpd hrtghpthhtoheprhhosggvrhhtmhhhrggrshesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtth hopehtohhmrghssehvohhnughrrgdrmhgv X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Dec 2024 12:06:02 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1734368759; bh=okLgWesQ/OZ6UMS85VS4YvW3tK5A+ORhvH8UTLvl+Fk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=S61TvgJu6c7DkkTjVfIOYOsyWzMW2/dxQCjGfSNTJJAPRhi82f3cV8RBrQiciHy6u eZrQwuuzylyoKYXlvJn3gxIsYWnrlLvt3PFsAeE/QoLBi55c+RaJagE9veOcx+4nOt yPd6znCMoCQIUafRKbTNNRk+tz2+zSRkscPCnWK3xOMrPxLB+Kgz9An7jyl+JCq94Z QgOYxfhFt3J00ng1cb+sw0f50pH16YE8xAh6wd2shMeuP6wgSd34qvldZP8qUlRe74 9T6v3TtJNy/kn7vU4cCkaQq7fxKHMl6T/0/MxGzvBcrZ4bVvikh2TaJCjCa147neko kf0XvknE6e/kw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id BEF129E; Mon, 16 Dec 2024 18:05:59 +0100 (CET) Date: Mon, 16 Dec 2024 18:05:59 +0100 From: Alvaro Herrera To: Robert Haas Cc: Andres Freund , Michael Harris , Tomas Vondra , PostgreSQL-development Subject: Re: FileFallocate misbehaving on XFS Message-ID: <202412161705.6u36fgydow3q@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Dec-16, Robert Haas wrote: > On Mon, Dec 16, 2024 at 9:12 AM Andres Freund wrote: > > Personally I don't like the obfuscation of "allocate" and "zero" vs just > > naming the function names. But I guess that's just taste thing. > > > > When looking for problems it's considerably more work with bytes, because - at > > least for me - the large number is hard to compare quickly and to know how > > aggressively we extended also requires to translate to blocks. > > FWIW, I think that what we report in the error should hew as closely > to the actual system call as possible. Hence, I agree with your first > complaint and would prefer to simply see the system calls named, but I > disagree with your second complaint and would prefer to see the byte > count. Maybe we can add errdetail("The system call was FileFallocate( ... %u ...)") with the number of bytes, and leave the errmsg() mentioning the general operation being done (allocate, zero, etc) with the number of blocks. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "The eagle never lost so much time, as when he submitted to learn of the crow." (William Blake)