]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: clarify behavior of PQconnectdbParams().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2020 18:58:30 +0000 (13:58 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Nov 2020 18:58:30 +0000 (13:58 -0500)
commitbc3b4c8ca1524b46204a380619e4c778ff5eb7cb
treefed9a3302922519296e4154c52dfa981050e5cee
parentf6324bbbe63c5430eee1ffc3cf56fc56ab2c1af8
Doc: clarify behavior of PQconnectdbParams().

The documentation omitted the critical tidbit that a keyword-array entry
is simply ignored if its corresponding value-array entry is NULL or an
empty string; it will *not* override any previously-obtained value for
the parameter.  (See conninfo_array_parse().)  I'd supposed that would
force the setting back to default, which is what led me into bug #16746;
but it doesn't.

While here, I couldn't resist the temptation to do some copy-editing,
both in the description of PQconnectdbParams() and in the section
about connection URI syntax.

Discussion: https://postgr.es/m/931505.1606618746@sss.pgh.pa.us
doc/src/sgml/libpq.sgml