Add new field "load_balance_node" to "SHOW pool_pools" and pcp_proc_info.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 23 Jul 2023 21:04:27 +0000 (06:04 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 23 Jul 2023 21:07:57 +0000 (06:07 +0900)
commit44fa732181ee2e909ec863164cc0e40f5252a033
tree3b945f0ced3ee698ec4a2b1b2db58ab456ec7bf7
parentbbbcd3ac5dc752a928eb4275d3cb64bdb54a1b73
Add new field "load_balance_node" to "SHOW pool_pools" and pcp_proc_info.

The new field is "1" if pgpool process is connected by a client and
the session uses the backend id as a load balance node. Users can
execute the commands to find out if there's any session that uses the
backend as the load balance node. If so, shutting down the backend may
cause session disconnection.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2023-July/004353.html

Note: I accidentally pushed only doc part of the commit in 4658f84870e8edfd39920f273bab1a12d71d8986.
This is a follow-up commit for actual codes.
src/include/pcp/libpcp_ext.h
src/tools/pcp/pcp_frontend_client.c
src/utils/pool_health_check_stats.c
src/utils/pool_process_reporting.c