Fix pcp_node_info() in pgpool_adm extension.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 14 Feb 2021 00:28:38 +0000 (09:28 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 14 Feb 2021 00:34:01 +0000 (09:34 +0900)
commit395ad59677e9da98567e161295a3dc6c151e78b5
tree523e4623221ef9304702f2b9b2d255ceec48b3d2
parentde3f0ed7c298719ad881bdd8aee6be98f32f8d84
Fix pcp_node_info() in pgpool_adm extension.

The weight info was mistakenly handled by Float8GetDatum although the
function prototype is float4. The oversight made the weight value to 0
or certain insane value. Change it to Float4GetDatum.  It is amazing
that nobody (including me) did not notice it until today.
src/sql/pgpool_adm/pgpool_adm.c