Hi all,

While looking at the documentation of libpq, I have noticed that the
term hostaddrs is used to qualify multiple values of hostaddr. This
looks incorrect to me, as this is not the name of a connection
parameter. Please find attached a patch to address this
inconsistency. One error message is also touched, impacting
translability.

Thanks,
--
Michael
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml
index 4e4645136c..f0a288cd3e 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</literal> 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 8d543334ae..77eebb0ba1 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -972,7 +972,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;
                }

Attachment: signature.asc
Description: PGP signature

Reply via email to