[pgpool-hackers: 4330] Re: [pgpool-committers: 9338] pgpool: Feature: Change default behavior of pcp commands for searching

NINGWEI CHEN chen at sraoss.co.jp
Wed Apr 26 11:50:16 JST 2023


Hi,

I've pushed this commit to change the behavior of pcp commands'
searching for pcppass file.

Before this change, even if the .pcppass file or PCPPASSFILE environment variable 
has alreadly been set, you have to specify a -w/--no-password option to make them to be used.

===
$ pcp_node_info -a -p 11001
Password: 

$ pcp_node_info -a -p 11001 -w
localhost 11002 1 0.500000 waiting up primary primary 0 none none 2023-04-24 13:07:34
localhost 11003 1 0.500000 waiting up standby standby 0 streaming async 2023-04-24 13:07:34
===

And after this change, .pcppass file/PCPPASSFILE environment variable will be 
checked automatically without the -w/--no-password option.

===
$ pcp_node_info -a -p 11001
localhost 11002 1 0.500000 waiting up primary primary 0 none none 2023-04-24 13:07:34
localhost 11003 1 0.500000 waiting up standby standby 0 streaming async 2023-04-24 13:07:34
===

Best Regards.
-- 
SRA OSS LLC
Chen Ningwei<chen at sraoss.co.jp>

On Tue, 25 Apr 2023 02:49:48 +0000
Chen Ningwei <chen at sraoss.co.jp> wrote:

> Feature: Change default behavior of pcp commands for searching password file.
> 
> Previously pcp command does not searching for .pcppass/PCPPASSFILE if -w/--no-password option
> is not given, which is inconsistent with psql.
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6ec851b18a946bea27478498e211c132e5fe7155
> 
> Modified Files
> --------------
> doc.ja/src/sgml/ref/pcp_common_options.sgml | 12 ++++++------
> doc.ja/src/sgml/reference.sgml              |  4 ++--
> doc/src/sgml/ref/pcp_common_options.sgml    |  4 ++--
> doc/src/sgml/reference.sgml                 |  2 +-
> src/tools/pcp/pcp_frontend_client.c         |  2 +-
> 5 files changed, 12 insertions(+), 12 deletions(-)
> 




More information about the pgpool-hackers mailing list