Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6cjy-0004bW-0q for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jun 2023 19:53:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q6cjw-0003gy-LA for pgsql-hackers@arkaria.postgresql.org; Tue, 06 Jun 2023 19:53:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q6cjv-0003Zl-Gf for pgsql-hackers@lists.postgresql.org; Tue, 06 Jun 2023 19:53:12 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q6cjp-000aIR-Vq for pgsql-hackers@lists.postgresql.org; Tue, 06 Jun 2023 19:53:10 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9908B5C00EE; Tue, 6 Jun 2023 15:53:04 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 06 Jun 2023 15:53:04 -0400 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=1686081184; x= 1686167584; bh=z65Xi3uiFraMzIc7ApJxtvOljpbP54kz+owkt+2YcS8=; b=o q8SpqNWDVOeV+u1oIbFcvXtK6rew2D5ZlHNRo/J7Vmb/h/VKNDc0JVCy2Wcb6A7/ jqrDuFhYiV8uOQhmQdf0ctF/juH5I9Yk8Jk3p9/dneBgb96y9xNaY9NJXOPw0tVN 4ge9i9BV2GKkN4nHVg/j/JyLqg6LEOrz9W4qZwEpf+vJ0tJBmgMA3bnU5g0jbwk8 PQR+e3YGGZXvgDBQ5LkB/kGs4L5ZMcXYn9Du7MHoevYeNAXuvjOmqrqd/uIXKpoX KacF2NuayM5Le9bl7ePJFsykD7oZaVVl8tAJoL01Ekcpzp/IZAaiXSeJr0zwMoXu BzsIjT/b32OKwDNP0+hvQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrgedtuddgudeggecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhv rghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorh hgqeenucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeej keffgfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghl vhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 6 Jun 2023 15:53:04 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CA6AD38B; Tue, 6 Jun 2023 21:53:00 +0200 (CEST) Date: Tue, 6 Jun 2023 21:53:00 +0200 From: Alvaro Herrera To: Andres Freund Cc: Christoph Berg , Thomas Munro , pgsql-hackers@lists.postgresql.org Subject: Re: could not extend file "base/5/3501" with FileFallocate(): Interrupted system call Message-ID: <20230606195300.wackhn5qc7nic5l5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230425001623.im5uquriqlk4ayy6@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Apr-24, Andres Freund wrote: > A prototype of that approach is attached. I pushed the retry handling into the > pg_* routines where applicable. I guess we could add pg_* routines for > FileFallocate(), FilePrewarm() etc as well, but I didn't do that here. > > Christoph, could you verify this fixes your issue? So, is anyone making progress on this? I don't see anything in the thread. On adding the missing pg_* wrappers: I think if we don't (and we leave the retry loops at the File* layer), then the risk is that some external code would add calls to the underlying File* routines trusting them to do the retrying, which would then become broken when we move the retry loops to the pg_* wrappers when we add them. That doesn't seem terribly serious to me. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "El Maquinismo fue proscrito so pena de cosquilleo hasta la muerte" (Ijon Tichy en Viajes, Stanislaw Lem)