Re: [PATCH] Add PQconninfoParseParams and PQconninfodefaultsMerge to libpq
Phil Sorber <phil@omniti.com>
From: Phil Sorber <phil@omniti.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2013-02-03T07:23:05Z
Lists: pgsql-hackers
Attachments
- libpq_params_parse_merge.diff (application/octet-stream) patch
On Sun, Feb 3, 2013 at 1:37 AM, Magnus Hagander <magnus@hagander.net> wrote: > > On Feb 3, 2013 4:16 AM, "Phil Sorber" <phil@omniti.com> wrote: >> >> This patch came up from discussion about pg_isready. >> >> PQconninfoParseParams is similar to PQconninfoParse but takes two >> arrays like PQconnectdbParams. It essentially exposes >> conninfo_array_parse(). >> >> PQconninfodefaultsMerge essentially exposes conninfo_add_defaults(). >> It allows you to pass a PQconninfoOption struct and it adds defaults >> for all NULL values. >> >> There are no docs yet. I assumed I would let bikeshedding ensue, and >> also debate on whether we even want these first. > > I think you forgot to attach the patch. > > /Magnus /me hangs head in shame :-( Here is is...