PQconninfoParse()

From: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
To: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: PQconninfoParse()
Date: 2011-09-27 13:13:36
Message-ID: CAAfz9KOvO3Ef7FL8TbQCWXT52EN1xo29nAsqDXxyoazZ5uOj8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

Hey,

I suggest to clarify the documentation of PQconninfoParse().

First,
"Returns parsed connection options from the provided connection string."
Its false. The returned array contains all options, rather than which only
parsed from the provided connection string. This fact must be specified in
the documentation becase the name of the function mismatches its behaviour.

Second,
"Note that only options explicitly specified in the string will have values
set
in the result array; no defaults are inserted."
Its true. But instead of "no defaults are inserted" I suggest "values of
other
options will have NULL values."

--
// Dmitriy.

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Bruce Momjian 2011-10-05 01:04:03 Re: coalesce
Previous Message Ray Stell 2011-09-27 13:10:28 Re: [pgsql-docs] Daily digest v1.1511 (3 messages)