You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Display the leader apply worker's PID for parallel apply workers.
Add leader_pid to pg_stat_subscription. leader_pid is the process ID ofthe leader apply worker if this process is a parallel apply worker. Ifthis field is NULL, it indicates that the process is a leader applyworker or a synchronization worker. The new column makes it easier todistinguish parallel apply workers from other kinds of workers and helpsto identify the leader for the parallel workers corresponding to aparticular subscription.Additionally, update the leader_pid column in pg_stat_activity as well todisplay the PID of the leader apply worker for parallel apply workers.Author: Hou ZhijieReviewed-by: Peter Smith, Sawada Masahiko, Amit Kapila, Shveta MallikDiscussion:https://postgr.es/m/CAA4eK1+wyN6zpaHUkCLorEWNx75MG0xhMwcFhvjqm2KURZEAGw@mail.gmail.com