Open CodeGordon opened 7 years ago
All PCP client side tools are independent of pgpool server side settings and have no visibility and access to the pgpool.conf file, Since the utility can be used to connect to any local or remote pgpool server, So pcp utilities always try to connect on the default socket directory and default port unless explicitly specified in the command's argument.
If you are using a different pcp_socket_dir and/or different pcp_port then you would be required to specify the socket file location and port in the pcp command argument
For example:
# with pcp_port = 9090 and pcp_socket_dir = '/run/postgresql'
pcp_pool_status -h /run/postgresql -p 9090 -U <user>
On the part of pgpool's PCP service listening on all addresses despite setting pcp_listen_addresses to empty string, I am able to reproduce the problem and will fix it.
Thanks
OS: ArchLinux Kernel: 4.6.4-GrSec PgSQL: 9.5.3 PgPool-II: 3.5.3
Compile-time options:
pgpool.conf (relevant options):
This file should be in
/run/postgresql
, not in/tmp
:The PCP service should not be listening on any address, let alone every address.
The
pcp_pool_status
tool is, according to documentation, supposed to be using the samepgpool.conf
file as the main service. It either is not, or has its values hardcoded. No option is listed in the documentation to use a specific configuration file.