Re: BUG #18966: Invalid SQL queries hang indefinitely until server restart
Laurenz Albe <laurenz.albe@cybertec.at>
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Tom Lane <tgl@sss.pgh.pa.us>, jeremy.spriet@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Date: 2025-06-25T05:36:35Z
Lists: pgsql-bugs
On Tue, 2025-06-24 at 15:09 -0400, Tom Lane wrote: > PG Bug reporting form <noreply@postgresql.org> writes: > > I’m running PostgreSQL 16.9 in Docker (PostgreSQL 16.9 (Debian > > 16.9-1.pgdg120+1) on x86_64-pc-linux-gnu, compiled by gcc 12.2.0, 64-bit), > > and intermittently observe that invalid SQL queries hang indefinitely > > instead of immediately returning an error. > > Valid queries continue to work normally and return results right away. > > You've not provided nearly enough info to do more than > speculate, however. Yes. One speculation that occurs to me is that the control group settings of your container are such that a process that exceeds the memory quota is suspended until enough memory becomes free. Yours, Laurenz Albe