pgsql: Introduce two new libpq connection functions, PQconnectdbParams - Mailing list pgsql-committers

From joe@postgresql.org (Joe Conway)
Subject pgsql: Introduce two new libpq connection functions, PQconnectdbParams
Date
Msg-id 20100128062826.C0BA17541B9@cvs.postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Introduce two new libpq connection functions, PQconnectdbParams and
PQconnectStartParams. These are analogous to PQconnectdb and PQconnectStart
respectively. They differ from the legacy functions in that they accept
two NULL-terminated arrays, keywords and values, rather than conninfo
strings. This avoids the need to build the conninfo string in cases
where it might be inconvenient to do so. Includes documentation.

Also modify psql to utilize PQconnectdbParams rather than PQsetdbLogin.
This allows the new config parameter application_name to be set, which
in turn is displayed in the pg_stat_activity view and included in CSV
log entries. This will also ensure both new functions get regularly
exercised.

Patch by Guillaume Lelarge with review and minor adjustments by
Joe Conway.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        libpq.sgml (r1.295 -> r1.296)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/libpq.sgml?r1=1.295&r2=1.296)
    pgsql/src/bin/psql:
        startup.c (r1.158 -> r1.159)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/startup.c?r1=1.158&r2=1.159)
    pgsql/src/interfaces/libpq:
        exports.txt (r1.24 -> r1.25)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/exports.txt?r1=1.24&r2=1.25)
        fe-connect.c (r1.384 -> r1.385)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c?r1=1.384&r2=1.385)
        libpq-fe.h (r1.149 -> r1.150)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/libpq-fe.h?r1=1.149&r2=1.150)

pgsql-committers by date:

Previous
From: itagaki@pgfoundry.org (User Itagaki)
Date:
Subject: reorg - pg_reorg: version 1.0.7.
Next
From: heikki@postgresql.org (Heikki Linnakangas)
Date:
Subject: pgsql: Change a few remaining calls of XLogArchivingActive() to use