pgsql: Introduce two new libpq connection functions, PQconnectdbParams

Поиск
Список
Период
Сортировка
От joe@postgresql.org (Joe Conway)
Тема pgsql: Introduce two new libpq connection functions, PQconnectdbParams
Дата
Msg-id 20100128062826.C0BA17541B9@cvs.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: itagaki@pgfoundry.org (User Itagaki)
Дата:
Сообщение: reorg - pg_reorg: version 1.0.7.
Следующее
От: heikki@postgresql.org (Heikki Linnakangas)
Дата:
Сообщение: pgsql: Change a few remaining calls of XLogArchivingActive() to use