[pgpool-hackers: 4170] Re: bug: localhost entry in .pcppass does not match Unix domain socket connections
Tatsuo Ishii
ishii at sraoss.co.jp
Thu Jun 9 17:06:05 JST 2022
> Hi,
>
> I checked the behavior of psql when using the .pgpass file.
> The behavior of psql using pgpass is the same as the pcp commands
> using the pcppass, but the difference is that the psql documentation
> expressly explain that the localhost entry matches the socket directory
> determined when build. The default socket directory
> (DEFAULT_PGSOCKET_DIR) is defined as "/tmp" in pg_config_manual.h.
>
> [libpq - C Library - The Password File]
> The host name localhost is also searched for when the connection
> is a Unix-domain socket connection and the host parameter matches
> libpq's default socket directory path.
>
> [libpq - C Library - Database Connection Control Functions - Parameter Key Words - host]
> The default behavior when host is not specified, or is empty, is to
> connect to a Unix-domain socket in /tmp (or whatever socket directory
> was specified when PostgreSQL was built).
>
> Instead of modifying the behavior of the pcp commands, should we
> modify the documentation to be the same as PostgreSQL?
+1 to fix the documentation.
Best reagards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
More information about the pgpool-hackers
mailing list