]> granicus.if.org Git - postgresql/commitdiff
Clarify that PQconninfoParse returns an array with all legal options.
authorRobert Haas <rhaas@postgresql.org>
Fri, 23 Mar 2012 02:09:20 +0000 (22:09 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 23 Mar 2012 02:09:20 +0000 (22:09 -0400)
Per discussion with Dmitriy Igrishin and Tom Lane.

doc/src/sgml/libpq.sgml

index 72c93845bebdb5603c3956dd3bfefdbe7c6d2112..96064bbb0de8cdb0ad3bd52f35c7d845038acf1f 100644 (file)
@@ -1027,8 +1027,10 @@ PQconninfoOption *PQconninfoParse(const char *conninfo, char **errmsg);
       </para>
 
       <para>
-       Note that only options explicitly specified in the string will have
-       values set in the result array; no defaults are inserted.
+       All legal options will be present in the result array, but the
+       <literal>PQconninfoOption</literal> for any option not present
+       in the connection string will have <literal>val</literal> set to
+       <literal>NULL</literal>; default values are not inserted.
       </para>
 
       <para>