Add a new wait state and use it when sending data in the apply worker.
authorAmit Kapila <akapila@postgresql.org>
Thu, 16 Feb 2023 02:16:31 +0000 (07:46 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 16 Feb 2023 02:16:31 +0000 (07:46 +0530)
commitfce003cfde219b7016140f83f67ebcfdf75aa0dc
tree620bb51220cf7add670e293c7930cff73c744606
parent1b43743f1174a5b98f77c8090a89d829c2874441
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
doc/src/sgml/monitoring.sgml
src/backend/replication/logical/applyparallelworker.c
src/backend/utils/activity/wait_event.c
src/include/utils/wait_event.h