[PATCH] Add PQconninfoParseParams and PQconninfodefaultsMerge to libpq

From: Phil Sorber <phil(at)omniti(dot)com>
To: PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: [PATCH] Add PQconninfoParseParams and PQconninfodefaultsMerge to libpq
Date: 2013-02-03 03:16:29
Message-ID: CADAkt-gJXGVkd1gRSyyJjS2mAbt7zWcJ1Tv1oh1eNXr0Rg1p8A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2013-02-03 05:35:09 Re: PL/Python result object str handler
Previous Message Phil Sorber 2013-02-03 02:55:29 Re: [PATCH] pg_isready (was: [WIP] pg_ping utility)