Skip to content

get_info_from_conninfo returns "host=" in host variable #22

Description

@nward

Hi,

I am testing pgpool 4.0.2 at the moment, and note that verify_backend_node_status returns incorrect results, and decides that the replica servers are not connected:

verify_backend_node_status: primary 1 does not connect to standby 0

However, the servers are.

I have inspected the code, and I see that get_info_from_conninfo skips over "port=" but does not skip over "host=", so, the value of host is "host=", while port is simply the string of the port number.

When the comparison between the configured backend_host and host happens, this does not match - of course.

I note that get_info_from_conninfo is not used anywhere else, so I will submit at PR to resolve this by skipping over "host=".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions