pgsql: Add a new wait state and use it when sending data in the apply w

From: Amit Kapila <akapila(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add a new wait state and use it when sending data in the apply w
Date: 2023-02-16 02:29:12
Message-ID: E1pSU1I-001MGV-7a@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2023-02-16 08:15:18 pgsql: Remove duplicated comment in nodeModifyTable.c
Previous Message Michael Paquier 2023-02-15 22:40:05 pgsql: Add description for new patterns supported in HBA and ident samp