pgsql: Fix error message when a hostaddr cannot be parsed.

2018-07-19 Thread Heikki Linnakangas
Fix error message when a hostaddr cannot be parsed. We were incorrectly passing hostname, not hostaddr, in the error message, and because of that, you got: $ psql 'hostaddr=foo' psql: could not parse network address "(null)": Name or service not known Backpatch to v10, where this was broken (by

pgsql: Fix error message when a hostaddr cannot be parsed.

2018-07-19 Thread Heikki Linnakangas
Fix error message when a hostaddr cannot be parsed. We were incorrectly passing hostname, not hostaddr, in the error message, and because of that, you got: $ psql 'hostaddr=foo' psql: could not parse network address "(null)": Name or service not known Backpatch to v10, where this was broken (by

pgsql: Fix error message when a hostaddr cannot be parsed.

2018-07-19 Thread Heikki Linnakangas
Fix error message when a hostaddr cannot be parsed. We were incorrectly passing hostname, not hostaddr, in the error message, and because of that, you got: $ psql 'hostaddr=foo' psql: could not parse network address "(null)": Name or service not known Backpatch to v10, where this was broken (by