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 1w4hXy-002T71-1v for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2026 15:50:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w4hXw-0019F5-2W for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2026 15:50:29 +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.96) (envelope-from ) id 1w4hXv-0019Eq-2O for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2026 15:50:28 +0000 Received: from fout-a1-smtp.messagingengine.com ([103.168.172.144]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w4hXs-00000000iaT-2eOn for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2026 15:50:27 +0000 Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfout.phl.internal (Postfix) with ESMTP id 9C809EC0204 for ; Mon, 23 Mar 2026 11:50:22 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Mon, 23 Mar 2026 11:50:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-transfer-encoding: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=1774281022; x=1774367422; bh=1eyxnjT2R2c00eueYZkrZncftwWtHf4l95vhcKfkiZA=; b= UgbP60hZY8R1V/54ZmOGNwc78NXKxcxsXc9J+6J/fMXSWM+H0gnCVIYh2STMC77u mDV2SeumifAkWBi/EupTo/41Ey7NswgmfmYlyalr53QuY0ieBG+51VqQvsPrYr6f MO0GVXj6H6sciUOJfhEQd6L5Nya/xBifUFHIlojrWQoJOjpR+LgNElONMWg3kcOG 8Z5j4vRKZbbp+WlxZjLr7qaFTrz15ZyqknZvFq7orJrd+99V03Go6pVsvDkGZl3/ L0oAQ+ZY+xTzx7RBEGRF7zb9L9u//iguqescu9TEfmkNRiyZDJsvdacp60cobL8f 4XL/tVJublqTjVtI9D8kYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1774281022; x=1774367422; bh=1 eyxnjT2R2c00eueYZkrZncftwWtHf4l95vhcKfkiZA=; b=HSm2GkRnE7LXa+nkq X60hmMHZXa7uwTB92f2QAvrKOSEjsl0opt0//0DHDxzlndzctTjm3t6clTdm83eN pgF7ZIwQbhM5EQr75WVIeaLfaJf5ZZ6WiQT90dpHmKRgqabwY7VN98Vu0oMR0dmC sWGqw+WJLhtn4ACxIBIodVlvgCMZ2/4TZznQ/RAKHv7QDW3wXAlomyfZJHBsPTrl cjk6njFCgYTSKRspES1623yAOlN1ouGfjgM/8HqzUUGmEMnXk2M0sb/aAHCevkEz npIoCxwSYPOsC/bu0x5B+WxLTLFRmSQQCtKbwnDkTSbfjB33TO0IU+igLJI7Khmo ol8wg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefudeludduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlvdefmdenucfjughrpeffhffvuf gfjghfkfggtgfgsehtqhhmtddtreejnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhgu uceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpeeftd dthfelhfefheehkeejgeehfeehvdfhgfdtieevudegveekleefgfdvgeehvdenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrg hnrghrrgiivghlrdguvgdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhht pdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvg hsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 23 Mar 2026 11:50:22 -0400 (EDT) Date: Mon, 23 Mar 2026 11:50:18 -0400 From: Andres Freund To: pgsql-hackers@lists.postgresql.org Subject: Re: Bug in pg_get_aios() User-Agent: K-9 Mail for Android In-Reply-To: References: <32BBB449-13FF-4DC7-9F7E-FB92CA0932FA@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi,=20 On March 23, 2026 4:44:21 AM EDT, Michael Paquier = wrote: >On Mon, Mar 23, 2026 at 02:30:28PM +0800, Chao Li wrote: >>> On Mar 23, 2026, at 14:23, cca5507 wrote: >>> If I understand correctly, we want to set nulls[0] to true if owner_pi= d equals to 0: >>=20 >> Indeed an obvious bug=2E > >Or the intention of the code could have been to allow a PID value of 0 >to be exposed, but I don't really buy it=2E That certainly wasn't the intent :)=2E I suspect this is unreachable, we wait for ios before exiting, but of cour= se that doesn't excuse broken code=2E >Will fix, thanks for the report=2E Thanks!=20 Andres --=20 Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E