aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander <magnus@hagander.net>2018-01-21 13:40:55 +0100
committerMagnus Hagander <magnus@hagander.net>2018-01-21 13:43:20 +0100
commitd66cfe1bf430ba20c52a9e9a9565edcb7cc0ac48 (patch)
tree77cf600110e0f625a19d1e7cdf885dae2549ea13
parente477d148e70302f1f93a42f0ebf0e5770a0fd64f (diff)
downloadpostgresql-d66cfe1bf430ba20c52a9e9a9565edcb7cc0ac48.tar.gz
postgresql-d66cfe1bf430ba20c52a9e9a9565edcb7cc0ac48.zip
Fix wording of "hostaddrs"
The field is still called "hostaddr", so make sure references use "hostaddr values" instead. Author: Michael Paquier <michael.paquier@gmail.com>
-rw-r--r--doc/src/sgml/libpq.sgml4
-rw-r--r--src/interfaces/libpq/fe-connect.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 7bc3c601287..a2fbb5f01d3 100644
--- a/doc/src/sgml/libpq.sgml
+++ b/doc/src/sgml/libpq.sgml
@@ -1010,8 +1010,8 @@ postgresql://%2Fvar%2Flib%2Fpostgresql/dbname
</para>
<para>
- A comma-separated list of <literal>hostaddrs</> is also accepted, in
- which case each host in the list is tried in order. See
+ A comma-separated list of <literal>hostaddr</literal> values is also
+ accepted, in which case each host in the list is tried in order. See
<xref linkend="libpq-multiple-hosts"> for details.
</para>
<para>
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 2839feef90c..92e91c4895a 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -965,7 +965,7 @@ connectOptions2(PGconn *conn)
{
conn->status = CONNECTION_BAD;
printfPQExpBuffer(&conn->errorMessage,
- libpq_gettext("could not match %d host names to %d hostaddrs\n"),
+ libpq_gettext("could not match %d host names to %d hostaddr values\n"),
count_comma_separated_elems(conn->pghost), conn->nconnhost);
return false;
}