From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Benjamin Leis <benleis1@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Interpreting MessageQueueSend state
Date: Tue, 14 Nov 2023 05:38:21 +0100
Message-ID: <0b7aba59f7b629f3fe7a46afdb174b7e5c08d880.camel@cybertec.at> (raw)
In-Reply-To: <CADP9qHt+nGXHB8m=bnpce8PnvC4m=5Fi7UoxvUoMR-zGH8_dAQ@mail.gmail.com>
References: <CADP9qHt+nGXHB8m=bnpce8PnvC4m=5Fi7UoxvUoMR-zGH8_dAQ@mail.gmail.com>
On Mon, 2023-11-13 at 17:06 -0800, Benjamin Leis wrote:
> I'm looking at a pg_stat_activity dump where there are a group of active
> threads stuck for a long time in MessageQueueSend
> 7:52.394089+00 | IPC | MessageQueueSend | active |
> | 27406510 | -5892847938856697008 | SELECT ....
> Does this mean they are blocked on clients reading data or does it
> represent something blocking on the server side?
That's something on the server: a parallel worker process is waiting to
send data to the parallel leader process. Look for the "leader_pid" column
in the "pg_stat_activity" line above and see what that process is doing.
I wouldn't worry about a parellel worker in that state, as long as there
is no problem with the parallel leader.
Yours,
Laurenz Albe
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: laurenz.albe@cybertec.at, benleis1@gmail.com
Subject: Re: Interpreting MessageQueueSend state
In-Reply-To: <0b7aba59f7b629f3fe7a46afdb174b7e5c08d880.camel@cybertec.at>
References: <CADP9qHt+nGXHB8m=bnpce8PnvC4m=5Fi7UoxvUoMR-zGH8_dAQ@mail.gmail.com> <0b7aba59f7b629f3fe7a46afdb174b7e5c08d880.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox