[pgpool-general: 7995] Re: pcp_node_info does not return when host is lost on 4.3.0

Tatsuo Ishii ishii at sraoss.co.jp
Tue Jan 25 22:19:30 JST 2022


> After more thought, I think get_nodes ("gut" of pcp_node_info) should
> not try to connect to PostgreSQL at all if it already knows the
> PostgreSQL server is down (actually get_nodes() calls PQpingParams()
> and it already knows whether PostgreSQL server is up or not). In this
> case it can immediately return "unknown" for pg_role field, and thus
> it can avoid the hang.
> 
> Attached is the patch. In the mean time please disregard the previous patch.

Oops. I attached wrong patch. I attach the new patch.

Best reagards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pcp_hang.patch
Type: text/x-patch
Size: 1354 bytes
Desc: not available
URL: <http://www.pgpool.net/pipermail/pgpool-general/attachments/20220125/002ad352/attachment.bin>


More information about the pgpool-general mailing list