pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: clarify behavior of PQconnectdbParams().
Date: Sun, 29 Nov 2020 18:58:57 +0000
Message-ID: <E1kjRuT-0003Vy-Bt@gemulon.postgresql.org> (raw)

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1eb499a8a5e6aa06f5bd8d53f2119e74efdd3db7

Modified Files
--------------
doc/src/sgml/libpq.sgml | 96 +++++++++++++++++++++++++++----------------------
1 file changed, 54 insertions(+), 42 deletions(-)



view thread (7+ messages)

Message-ID: <E1kjRuT-0003Vy-Bt@gemulon.postgresql.org>
Permalink:  ../E1kjRuT-0003Vy-Bt@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kjRuT-0003Vy-Bt@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Doc: clarify behavior of PQconnectdbParams().
  In-Reply-To: <E1kjRuT-0003Vy-Bt@gemulon.postgresql.org>
  References: <E1kjRuT-0003Vy-Bt@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox