pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add a new wait state and use it when sending data in the apply w
Date: Thu, 16 Feb 2023 02:29:12 +0000
Message-ID: <E1pSU1I-001MGV-7a@gemulon.postgresql.org> (raw)

Add a new wait state and use it when sending data in the apply worker.

d9d7fe68d3 made use of an existing wait event when sending data from the
apply worker, but we should have invented a new wait event since this is a
new place to wait.

This patch corrects the mistake by using a new wait event
"LogicalApplySendData".

Author: Hou Zhijie
Reviewed-by: Peter Smith
Discussion: https://postgr.es/m/CA+TgmobWzbr9H3yN3dLVckviEZKemPwd+XyCFKEgyZQZhgP66Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fce003cfde219b7016140f83f67ebcfdf75aa0dc

Modified Files
--------------
doc/src/sgml/monitoring.sgml                          | 5 +++++
src/backend/replication/logical/applyparallelworker.c | 3 ++-
src/backend/utils/activity/wait_event.c               | 3 +++
src/include/utils/wait_event.h                        | 1 +
4 files changed, 11 insertions(+), 1 deletion(-)



Message-ID: <E1pSU1I-001MGV-7a@gemulon.postgresql.org>
Permalink:  ../E1pSU1I-001MGV-7a@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1pSU1I-001MGV-7a@gemulon.postgresql.org

 · 

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 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-committers@postgresql.org
  Cc: akapila@postgresql.org
  Subject: Re: pgsql: Add a new wait state and use it when sending data in the apply w
  In-Reply-To: <E1pSU1I-001MGV-7a@gemulon.postgresql.org>
  References: <E1pSU1I-001MGV-7a@gemulon.postgresql.org>

* 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