From: | joe(at)postgresql(dot)org (Joe Conway) |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Introduce two new libpq connection functions, PQconnectdbParams |
Date: | 2010-01-28 06:28:26 |
Message-ID: | 20100128062826.C0BA17541B9@cvs.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2010-01-28 07:31:42 | pgsql: Change a few remaining calls of XLogArchivingActive() to use |
Previous Message | User Itagaki | 2010-01-28 06:02:28 | reorg - pg_reorg: version 1.0.7. |