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.94.2) (envelope-from ) id 1tJGFq-001oVo-3M for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2024 18:07:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tJGFm-0080Dl-OC for pgsql-bugs@arkaria.postgresql.org; Thu, 05 Dec 2024 18:07:07 +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.94.2) (envelope-from ) id 1tJGFm-0080Db-FJ for pgsql-bugs@lists.postgresql.org; Thu, 05 Dec 2024 18:07:07 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJGFk-001Ds9-OW for pgsql-bugs@lists.postgresql.org; Thu, 05 Dec 2024 18:07:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B5I73vt2567619; Thu, 5 Dec 2024 13:07:03 -0500 From: Tom Lane To: shawncarter@onboardeng.com cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18734: pg_terminate_backend was unresponsive for processes with the status "active" In-reply-to: <18734-3dfe0282d2e102c2@postgresql.org> References: <18734-3dfe0282d2e102c2@postgresql.org> Comments: In-reply-to PG Bug reporting form message dated "Wed, 04 Dec 2024 23:55:49 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2567617.1733422023.1@sss.pgh.pa.us> Date: Thu, 05 Dec 2024 13:07:03 -0500 Message-ID: <2567618.1733422023@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk PG Bug reporting form writes: > pg_terminate_backend failed to terminate active queries on a materialized > view until an "idle in transaction" backend tied to the same view was > terminated. Can't do much with this report if you don't give a full recipe for reproducing it. I guessed that the problem might be "the termination isn't effective while the session is blocked on a lock", but in an experiment here that worked for me. So I have no idea what was happening in your case. regards, tom lane