postgresql/src/test/regress
Amit Kapila d540a02a72 Display the leader apply worker's PID for parallel apply workers.
Add leader_pid to pg_stat_subscription. leader_pid is the process ID of
the leader apply worker if this process is a parallel apply worker. If
this field is NULL, it indicates that the process is a leader apply
worker or a synchronization worker. The new column makes it easier to
distinguish parallel apply workers from other kinds of workers and helps
to identify the leader for the parallel workers corresponding to a
particular subscription.

Additionally, update the leader_pid column in pg_stat_activity as well to
display the PID of the leader apply worker for parallel apply workers.

Author: Hou Zhijie
Reviewed-by: Peter Smith, Sawada Masahiko, Amit Kapila, Shveta Mallik
Discussion: https://postgr.es/m/CAA4eK1+wyN6zpaHUkCLorEWNx75MG0xhMwcFhvjqm2KURZEAGw@mail.gmail.com
2023-01-18 09:03:12 +05:30
..
data
expected Display the leader apply worker's PID for parallel apply workers. 2023-01-18 09:03:12 +05:30
sql Fix typo in comment. 2023-01-17 10:39:11 +05:30
.gitignore
GNUmakefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
parallel_schedule Upgrade the random.sql regression test. 2023-01-09 20:30:25 -05:00
pg_regress_main.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_regress.c Remove pg_regress' never-documented "ignore" feature. 2023-01-09 20:34:26 -05:00
pg_regress.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
README
regress.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
regressplans.sh
resultmap

Documentation concerning how to run these regression tests and interpret
the results can be found in the PostgreSQL manual, in the chapter
"Regression Tests".