Re: libpq host/hostaddr/conninfo inconsistencies - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq host/hostaddr/conninfo inconsistencies
Date
Msg-id 22313.1550764652@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq host/hostaddr/conninfo inconsistencies  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: libpq host/hostaddr/conninfo inconsistencies  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> From my point of view, the issue here is that the way the
> documentation is written right now tends to lead people to believe
> that if they have a host name, they must pass it via host, and if they
> have an IP address, they must pass it via hostaddr.  Thus pgAdmin 3,
> at least, had code to check whether the input looked like an IP
> address and put it into one field or the other accordingly.  And
> that's stupid.

True, but isn't that because we fail to document at all that you
can put an IP address in "host"?  Which your proposed patch didn't
change, IIRC.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq host/hostaddr/conninfo inconsistencies
Next
From: Robert Haas
Date:
Subject: Re: libpq host/hostaddr/conninfo inconsistencies