public inbox for [email protected]  
help / color / mirror / Atom feed
From: Laurenz Albe <[email protected]>
To: Achilleas Mantzios <[email protected]>
To: [email protected]
Subject: Re: The same again with 16.9 : was Re: PostgreSQL 16.6 , query stuck with STAT Ssl, wait_event_type : IPC , wait_event : ParallelFinish
Date: Fri, 22 Aug 2025 10:29:54 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<[email protected]>

On Fri, 2025-08-22 at 09:16 +0100, Achilleas Mantzios wrote:
> we had the same problem today again.
> 
> postgres@[local]/dynacom=# select * from pg_stat_activity where application_name~*'dbmirr'; 
>  -[ RECORD 1 ]----+-----------------------------------------------------------------------------------------------
> [...]
>  pid              | 1821681 
> [...]
>  wait_event_type  | IPC 
>  wait_event       | ParallelFinish 
>  state            | active 
> 
> postgres@smadb:~$ ps -u -p 1821681 
>  USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND 
>  postgres 1821681  0.5  4.8 37111844 3177260 ?    Ssl  03:58   2:25 postgres: postgres dynacom 10.9.0.10(45051) SELECT 

Did you check whether the Perl function you mentioned before starts threads,
like Tom suggested?  That would be the probable cause, and the solution is
not to start any threads in a PostgreSQL function.

Yours,
Laurenz Albe





reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: The same again with 16.9 : was Re: PostgreSQL 16.6 , query stuck with STAT Ssl, wait_event_type : IPC , wait_event : ParallelFinish
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox