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 1r2lC0-000j3M-54 for pgsql-general@arkaria.postgresql.org; Tue, 14 Nov 2023 04:38:28 +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 1r2lBy-0057Gp-Pc for pgsql-general@arkaria.postgresql.org; Tue, 14 Nov 2023 04:38:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r2lBy-0057GZ-Eb for pgsql-general@lists.postgresql.org; Tue, 14 Nov 2023 04:38:26 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r2lBv-005Tk2-Pk for pgsql-general@lists.postgresql.org; Tue, 14 Nov 2023 04:38:24 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5437269a661so12501543a12.0 for ; Mon, 13 Nov 2023 20:38:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1699936702; x=1700541502; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=DwALj0UhWjZlNZ7IClPzZr+cAaSscqc1C5k58v2c4A4=; b=CFz9JBTVs0yI0FM7eXfj5ylKSSVxCju1+TVs7vgE75SAC1SN/K67R9MQ9yGEmMrayo dDn6v6e23Iv+BwdCl/dOZ7/Jr3Uj7090/5fvzNiWskTl+6tPFsIf5GpG6pBXnWzqAh59 5tgaApEmgpY1EoI8A/xwcnZaMwtJiR8eUcQYX4TI8dmxphcjpYB1zZY1VoLUEpBlTguf RHRxMrvQ5ib3XcsESnbu1IbzAf5YbBB5ZWFI5B7A4VJf9QFRaPsZp3Q4Qi7wSnz4qUP1 N+nJ7ZlEpRnsjC/ZKoCEQOLZvmXHVexrSKFkTSjBNny5oiAQkkLR8cSUSk/fmZFA1Qx8 q6hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699936702; x=1700541502; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DwALj0UhWjZlNZ7IClPzZr+cAaSscqc1C5k58v2c4A4=; b=huCTwKbKs5N+F0VpJGpFasYHHlFg/dd9V2b/xTC6QbZ1qAfWatscceZH5kKGm01TQO 03ko4Bs8g1OuY7taK7qloM02KkEveM3xiQt311BzIqsyLXYCg/lwQRp4C5/tz/LCGYHr jZry6pp7V1woQFY1Z4e50ErgpHOshK6s+2kelcSutmUT8CSBuDPCmBF8iQf78Pc+SVTu ejC0CvvJEEf/tKE0NKV9Aki3aNHDgdILs9BYUwuq54VSfbF3Sfx0v0qz9AGU4DwVAgVi n8HHi+xCQaZCWXc9wdeyCTxl/1zKbTjDVz+EefRW+4qf9Eg5dE3HF1O1TDeOAUoUvF/S qF9w== X-Gm-Message-State: AOJu0YxapMisIUjwapne3RdscGrZLDpszAhSzQdZwTtTdy9t79r2XqY0 uZzySKDsC7aLAjQ0LnaXmw90jA== X-Google-Smtp-Source: AGHT+IGGmwOcAa6hJfKaYoRe9qSS0h/amlw5APNV4TzYZPccom3PGwD37NK9bdcHdIp7xo7CYuiHFA== X-Received: by 2002:a17:906:3947:b0:9ef:e6fd:fdbf with SMTP id g7-20020a170906394700b009efe6fdfdbfmr272835eje.20.1699936702005; Mon, 13 Nov 2023 20:38:22 -0800 (PST) Received: from localhost.localdomain (p50992f7c.dip0.t-ipconnect.de. [80.153.47.124]) by smtp.gmail.com with ESMTPSA id v6-20020a1709060b4600b009b957d5237asm4893778ejg.80.2023.11.13.20.38.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Nov 2023 20:38:21 -0800 (PST) Message-ID: <0b7aba59f7b629f3fe7a46afdb174b7e5c08d880.camel@cybertec.at> Subject: Re: Interpreting MessageQueueSend state From: Laurenz Albe To: Benjamin Leis , pgsql-general@lists.postgresql.org Date: Tue, 14 Nov 2023 05:38:21 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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