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 1uLaBA-00CF8y-8B for pgsql-admin@arkaria.postgresql.org; Sun, 01 Jun 2025 04:20:12 +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 1uLaB6-000Rcq-D5 for pgsql-admin@arkaria.postgresql.org; Sun, 01 Jun 2025 04:20:08 +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 1uLaB6-000Rch-1w for pgsql-admin@lists.postgresql.org; Sun, 01 Jun 2025 04:20:08 +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.96) (envelope-from ) id 1uLaB2-0019C6-2g for pgsql-admin@lists.postgresql.org; Sun, 01 Jun 2025 04:20:07 +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 5514JwJh3049795; Sun, 1 Jun 2025 00:19:58 -0400 From: Tom Lane To: Achilleas Mantzios cc: pgsql-admin Subject: Re: PostgreSQL 16.6 , query stuck with STAT Ssl, wait_event_type : IPC , wait_event : ParallelFinish In-reply-to: References: Comments: In-reply-to Achilleas Mantzios message dated "Sun, 01 Jun 2025 00:12:50 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3049793.1748751598.1@sss.pgh.pa.us> Date: Sun, 01 Jun 2025 00:19:58 -0400 Message-ID: <3049794.1748751598@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Achilleas Mantzios writes: >> a query is stuck with the above, it seems it waits for parallel worker >> to finish, however , there are no parallel works running : You didn't explain the subject about "STAT Ssl", but if you mean that that was what ps was showing for the backend process, there's something very wrong there. According to "man ps", the "l" means l is multi-threaded (using CLONE_THREAD, like NPTL pthreads do) which is something that a Postgres backend should never be (in existing releases anyway). So I'm speculating that the process somehow became multi-threaded and then some wakeup signal went to the wrong thread. We've had issues with perl or python introducing multi-threading because of plperl or plpython functions doing things they probably shouldn't. Do you have any of those in your system? regards, tom lane