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 1wPeaJ-000vXW-01 for pgsql-bugs@arkaria.postgresql.org; Wed, 20 May 2026 10:55: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 1wPeaH-007DTs-08 for pgsql-bugs@arkaria.postgresql.org; Wed, 20 May 2026 10:55: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 1wPeaG-007DTk-2Z for pgsql-bugs@lists.postgresql.org; Wed, 20 May 2026 10:55:29 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wPeaF-00000000XL4-1x4B for pgsql-bugs@lists.postgresql.org; Wed, 20 May 2026 10:55:29 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-488b0046078so41878595e9.1 for ; Wed, 20 May 2026 03:55:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779274526; x=1779879326; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=qhRGv7edMxRSz3oJoovWdnu9Izm6u/cz0Rn5XWEkcW4=; b=jIfhhzf0wZBP3mqzpjijBIFtgFbfL7S2qunzggnktmUlsSH1klgIc3aWThoqgkINr4 djwUcqXaTDr7qvfrY1TpzTLi4rjSqVxpmf8mJhOnxNzhLIgeqaqz2XmkUIWq8le6+q95 5IZGLesUDPKzn+A1/DgCvnjxp8c4hR/6uoPg8qR2np19cm+rs9PgnfOFE5TYCLjwqzin EWFsTA4xQsjNy0m8eolOfjQqjZPENkoQX/PSNFRQt+l3uLPuVXGfSxsGirlt73QNkUAI LGjKvZB9EzUCn2iGGCvcZpF3j7/7bGexAx/5vK5R1S4DV05n/hcIQegZ2ESJXY581UcD 23xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779274526; x=1779879326; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qhRGv7edMxRSz3oJoovWdnu9Izm6u/cz0Rn5XWEkcW4=; b=nxcAXq+/JzksMgn7ujqdC/z6BrYC7Mq7ICC5BA0Qu9QknrlqQ26IDtppoYRuEs4ESH 2skI0CIPfgoKMlX5D4VRPOzoWodrGXsqjFirjybP0AS78A4+CkFgDCr5wJ9Js7Kox1mD tnScCqRluHQ8q9z/HsnZSw9H93pTlP9MPQO8R5g+G5Exk5fkwNg+A5W7Afw2THaYPD9Y BhwdUsl/IzbisjL9LDe79+kKmK3jI0gc7qAX+eCqwqFpqtA3DGFw6C2oHHMpNAqaw86O +BdlzbDOtmYD3or5mDRb7IiEszoPly7ICTAqGvJ8ac+d9hTCsv5J4CeyveV/Cd2D3kvf vLoQ== X-Forwarded-Encrypted: i=1; AFNElJ9ewibCDojqDX9PYdIe1S6LG+yC/3dneuCl3M10QtJJXad0aMrcE8h+/il/aMePadKVm6J7SgX7YEqg@lists.postgresql.org X-Gm-Message-State: AOJu0Yxl7Dqg14nMGXzUSJg+yz4QRt+UeLoSWojbNw1X91SVljP9IVSw VAkWWTZ9EI8vYfFUsbHulOC7Bpnzm65avGL3ESmiJdztJVm0lPNuJHak X-Gm-Gg: Acq92OFJsWIsmNYCjoKegJKspeEyhp9plclEq+NiVvplPKCd3gvJl9/QwvTfUU7NEy0 1hDVkkkObCsafqFdsb2nxJeIqCrlsObYmH2LEgNRSekvqepBGqPf4ms2EguAtM02UYxCgnQEgVK xLraZa2Urw29X9N3n3wM5CrBH9nsdFL3u9E18XYi70CgLyVSVhjxacJeZyqWmMm8EzayHZErF0T TZHhroBDvZEh3tBiaT3qXUBvVqb3PHScwb8BD/qCxgw2OLv1nFkAhCX5PSAY1gUVTn8TpVNRwbl xvkkpOiR36i9NBDNbBrumnkU94Ln9Q4TJYAfDL5K4BfKpviX7O/p0Rr7mKoOnhAIXTn4dv4T/Nm xOMVV6BRsNSxmjKbZlbf4bYuowrpedhS4qwIisszcIuAh1CE4iSIK9B4dxHfUWGwgLpl32z2zJV 0WgyTgr594tgq2qf5dwyeoZmAXTOj/qxltVWYUjUXpIRQwshs= X-Received: by 2002:a05:600c:8b6e:b0:48a:6fd4:d3d3 with SMTP id 5b1f17b1804b1-48fe61ed21amr378244055e9.20.1779274525767; Wed, 20 May 2026 03:55:25 -0700 (PDT) Received: from [192.168.15.82] ([80.251.191.198]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fe5ab52a6sm388763535e9.10.2026.05.20.03.55.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 May 2026 03:55:25 -0700 (PDT) Message-ID: <3b02a3fe-bf62-4231-8ea8-5021f4846e2d@gmail.com> Date: Wed, 20 May 2026 12:55:24 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: Non-cancellable queries To: Anton Fedorov , pgsql-bugs@lists.postgresql.org References: Content-Language: en-US From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19/05/2026 22:44, Anton Fedorov wrote: > You can run as many queries as you want; the queries sitting server-side, > consuming CPU: > image.png > > The only way to kill them is to restart the server or wait almost indefinitely. Yyou found the trick where the join list building routine consumes a lot of resources. Postgres code is aware of this situation and has a clear trade-off between performance and signal checking. Even if we fix this specific case, there are multiple cycles in the code that might be expanded by a tricky query. So, can you provide more context to define the problem's importance and scope so we can determine whether this subject is actually important and should be fixed? -- regards, Andrei Lepikhov, pgEdge