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 1vgtsT-006S0i-07 for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Jan 2026 00:09:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vgtsR-005fuE-2v for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Jan 2026 00:09:16 +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 1vgtsR-005fu6-21 for pgsql-bugs@lists.postgresql.org; Sat, 17 Jan 2026 00:09:15 +0000 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vgtsP-000q9t-0x for pgsql-bugs@lists.postgresql.org; Sat, 17 Jan 2026 00:09:14 +0000 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-457c1148a5bso1034507b6e.1 for ; Fri, 16 Jan 2026 16:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768608553; x=1769213353; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=nx+AZf4bSieLFVL/GTmGpkflujagnqd65crwu8e0aNg=; b=RWz0G18zNHYJkgyoUVJ+3xOKtj71xaHW2+VuZfIV1gFNaguTHtV6JUv7Eg5W9JpVYg QI90BkaazDLqxiAdivLw5ooAg+NR0IAZeutvYIRt0LoXLlfU/d3lRD5fKezSPkLWGVkQ 30GYw8OxLs5l2bnumpVcbE02qRwxfcsx3c7P8JTLke2Z0034MdY6yPeA+egPStk7GQDx uxUZkIIGB7UoIRyL1gzlEU6AiBBWImwMM9oNBtpE7qVrxMkWWjFG6J6bJu4BaYncAbWh NhhA/iQCFTg/W8E3Pkk262AbZtoOgbHFbIEXPnT8pJDKTA/KgE5LmsJ4jB2kvzJIIj18 tSZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768608553; x=1769213353; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nx+AZf4bSieLFVL/GTmGpkflujagnqd65crwu8e0aNg=; b=MyKf9LKUuevIzIfNEvSECKz6oFVoFnMLjUlrvRW/+JpF9r7JDvVpJN4ResLTNkIdcm uVdZyNz6YrjiPB9HuRYaIjSWy87S8Cu1BB2iGNCpc1/nRxkF5yUUYj/9hk8w/+R/SLPc 2UAXN/ntE3qTjodqzfwp1SOrae3OdxTDu+IUi8nMBaqhKvwCx9mF/KMSxuCbljr7eZJO 8WXVlcp1xPUCOL6xTr2cCrkizxmjsK6bYjZV/i/EQyqoOGH6DkBKF8pJ49ohXmQ2G03P wTWQHbkgOJdfSyLFh1EAX68jproImOp5Pueq8A1l31QhaYRclBbpQvtfJygr/Tugu5hP U8ZQ== X-Forwarded-Encrypted: i=1; AJvYcCVTUQoJ4JuV0n37VJMoPRDrXH4HqMBLLP4vGiikg/jGSObCrnxV98PBxURnuFsycXKpYTwZdcvHbf28@lists.postgresql.org X-Gm-Message-State: AOJu0YwBeQYGOConvmwJNg0D68MSKJECFyBAy5E3yDqV53qVDQYMjqhh WmQaf8xbnq6wEEZ1UL7kbcbJmScJP4+iPd9+yrS23Vh4YzWYANl99J4fEOhL+iyY9n51IVyXJiv hYNXo/hbsPNKGuHjOnCFepd8iny9W4C4CgJcj X-Gm-Gg: AY/fxX6+w3gO/cLUUhCmxIR95XY4drRjNEyPMoylymJYUfDcW1KjSOefJrypFVCjea7 KKbJpOriMlRrEI/8r/vA5/x9prtxODGB6IYbYRUkaT7EGGwobtGyz2Xb9wwFsg/ICfp8D5Y2a2Z C9gYLYDS6oi/YlPPexoa5fgzYKmhgMJ3Ci2gPUEVOax57yQsCSPsND+Vyyqc2oWNqtr8sLmfS7V /bjcpK4NiM4pGpYKmWs4Cziebx3ZvT7R36JpylXEfPw9OuA+yyAq/0dc7O6+rNVodOHu/oaTLcV TQ== X-Received: by 2002:a05:6808:199f:b0:45a:77f4:956b with SMTP id 5614622812f47-45c9d6b7f9dmr1755977b6e.6.1768608553277; Fri, 16 Jan 2026 16:09:13 -0800 (PST) MIME-Version: 1.0 References: <19373-aac0a0ee0aac6a8b@postgresql.org> In-Reply-To: <19373-aac0a0ee0aac6a8b@postgresql.org> From: surya poondla Date: Fri, 16 Jan 2026 16:09:02 -0800 X-Gm-Features: AZwV_QhMTPLkM1fbjZRhlSBIkhE5b8ML3p4boyJjWnInYP3nafd34FvIhEPqS-k Message-ID: Subject: Re: BUG #19373: One backend hanging in AioIoUringExecution blocking other backends To: michael.kroell@gmail.com, pgsql-bugs@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000909bc306488a44a4" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000909bc306488a44a4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Michael, Thank you for the detailed report. Even though there was a *global* statement_timeout=3D61s configured, backen= ds > accessing the same table were hanging with ``LWLock AioUringCompletion`` > The statement_timeout not interrupting and not erroring out looks weird, and this part could be a postgres bug in itself. > Restarting the cluster did not go through until the hanging leader PID wa= s > ``SIGKILL``ed > Am I understanding this correctly as "Normal shutdown (SIGTERM or pg_ctl stop) did not complete, and postmaster remained waiting on until AioIoUringExecution was force killed" ? I=E2=80=99m interested in digging into this and am wondering about the belo= w 1. What filesystem and storage was this instance running on 2. Was this a parallel sequential scan, was any index access involved? 3. By any chance do you have a reproducible test case? 4. Can you share what shared_preload_libraries you are using? Regards, Surya Poondla --000000000000909bc306488a44a4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Michael,

Thank= you for the detailed report.

Even though there was a *global* statement_timeout=3D61s configured, backen= ds
accessing the same table were hanging with ``LWLock AioUringCompletion``

The statement_timeout not interrupting an= d not erroring out looks weird, and this part could be=C2=A0a postgres bug = in itself.
=C2=A0
Restarting the cluster did not go through until the hanging leader PID was<= br> ``SIGKILL``ed
Am I understanding this correctly as &qu= ot;Normal shutdown (SIGTERM or pg_ctl stop) did not complete, and postmaste= r remained waiting on until=C2=A0AioIoUringExecution=C2=A0was force killed&= quot; ?

I=E2=80=99m interested in digging into this and am wondering= about the below
1. What=C2=A0filesystem and storage was this ins= tance running on
2.=C2=A0Was this a parallel sequential scan, was any in= dex access involved?
3. By any chance do you have a reproducible = test case?
4. Can you share what=C2=A0shared_preload_libraries you are u= sing?

Regards,
Surya Poondla
--000000000000909bc306488a44a4--