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 1w5WFf-003KcQ-0Y for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 21:58:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5WFd-00Gqf8-2D for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 21:58:58 +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.96) (envelope-from ) id 1w5WFc-00Gqf0-14 for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 21:58:57 +0000 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w5WFV-000000012N7-3eMF for pgsql-hackers@postgresql.org; Wed, 25 Mar 2026 21:58:55 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfhigh.phl.internal (Postfix) with ESMTP id 4B39914002D1; Wed, 25 Mar 2026 17:58:48 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Wed, 25 Mar 2026 17:58:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; 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=fm1; t=1774475928; x=1774562328; bh=+9DLIi3DKa m3dP7qTd/CIphLBeD3bxjCTPU7Sw9Jcp0=; b=qrZS7XykxmR+23Ses7bsjdRXDe uuExwpa8ijhUcUMcBhfKlIyvHu52I5QddreeHS4wk0tbpzKy+yVq+cOXhsKwy1GN Nk3unTzVDjCVc3cXltJTgZ0YwD/pMR9JdmdRIwD2qUzYYwKsK3mk/URYECTL6CLU OTaoeWUt9kZ9s8MJLlVScSNb3mcz0IN4efXHVmzAWH1OaLzK1sJ8QGs51v5cWlRP 899M2DBbh4pgQ/trz4HrDRvt9MmZypDbv/ILelO47lBGe83Hku79CxZoIJ81t203 cftj6WBeHVAOhdghLdaGzph3IVs3SOVnNJLDt+zb+j+FF3GG4BC04dRe1Xow== 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-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774475928; x=1774562328; bh=+9DLIi3DKam3dP7qTd/CIphLBeD3bxjCTPU 7Sw9Jcp0=; b=QaNz98N01zBrBvupj507Jvin6SuyAiyodTIeATnpLDOFE4fm5gu SGkB7q7HW2JL9+NyGf4pSdJkRmeatHEeQY6y+B/idFOgqb5xBnYSIKmGeDjx2Dvl Do1COw/kGyDIYrbPnhWXAekpgqyfGruHsJpHiu5Ix1poP83SYrpuPm0cZI/FyhXl 5QPb4Wpm1anUPR6X7StsEkWJa1WfGmBe3PZQ5Zrf612TrjZ0HleAm7D/LhA3b4L/ I2xoNhGWijpYUnnCqzGydnhSpDBvR5doLSRtk6k7D8x5cbIbsVh8z73NR48G77Qm xhoeXeSyyA3qTLZ4bJmauwGbVvd82GiWsMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdehiedtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesmhdtsfertddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepfeefudejgffghfegheduffduieejgedtkeejhfevieevgeekgeekleeljeef keeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeeipdhmohguvgep shhmthhpohhuthdprhgtphhtthhopehpghessghofihtrdhivgdprhgtphhtthhopehtvh esfhhuiiiihidrtgiipdhrtghpthhtohepsgihrghvuhiikedusehgmhgrihhlrdgtohhm pdhrtghpthhtohepmhgvlhgrnhhivghplhgrghgvmhgrnhesghhmrghilhdrtghomhdprh gtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrghilhdrtghomhdprhgtphhtthho pehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 25 Mar 2026 17:58:47 -0400 (EDT) Date: Wed, 25 Mar 2026 17:58:46 -0400 From: Andres Freund To: Melanie Plageman Cc: Nazir Bilal Yavuz , Thomas Munro , pgsql-hackers@postgresql.org, Peter Geoghegan , Tomas Vondra Subject: Re: Don't synchronously wait for already-in-progress IO in read stream Message-ID: References: <42rdu4q44kvsq53fz5qgzuawqpaytvnemsnquynlfch5mqhc2m@6ytnlgivtzro> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="zousfcpkuk57oxzf" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --zousfcpkuk57oxzf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Attached is an updated set of patches. I fixed the bug that Melanie noticed, updated the comments a bit further and added a new commit that adds a decent bit of coverage of StartReadBuffers(), including all the cases in StartSharedBufferIO and most of the cases in StartLocalBufferIO(). I'm planning to commit 0001 soon - it hasn't changed in a while. Then I'd like to get 0002 committed soon after, but I'll hold off for that until tomorrow, given that nobody has looked at it (as it's new). I think 0004-0007 can be committed too, but I am not sure if you (Melanie) want to do so. I'd like to get the rest committed tomorrow too. Greetings, Andres Freund --zousfcpkuk57oxzf Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v8-0001-aio-Refactor-tests-in-preparation-for-more-tests.patch"