Skip site navigation (1) Skip section navigation (2)

pgsql: Introduce two new libpq connection functions, PQconnectdbParams

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: (view raw, whole thread or download thread mbox)
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

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

Modified Files:
        libpq.sgml (r1.295 -> r1.296)
        startup.c (r1.158 -> r1.159)
        exports.txt (r1.24 -> r1.25)
        fe-connect.c (r1.384 -> r1.385)
        libpq-fe.h (r1.149 -> r1.150)

pgsql-committers by date

Next:From: Heikki LinnakangasDate: 2010-01-28 07:31:42
Subject: pgsql: Change a few remaining calls of XLogArchivingActive() to use
Previous:From: User ItagakiDate: 2010-01-28 06:02:28
Subject: reorg - pg_reorg: version 1.0.7.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group