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

pgsql: Modify recently added PQconnectdbParams() with new argument,

From: joe(at)postgresql(dot)org (Joe Conway)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Modify recently added PQconnectdbParams() with new argument,
Date: 2010-02-05 03:09:05
Message-ID: 20100205030905.64B807541B9@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Modify recently added PQconnectdbParams() with new argument, expand_dbname.
If expand_dbname is non-zero and dbname contains an = sign, it is taken as
a conninfo string in exactly the same way as if it had been passed to
PQconnectdb. This is equivalent to the way PQsetdbLogin() works, allowing
PQconnectdbParams() to be a complete alternative.

Also improve the way the new function is called from psql and replace a
previously missed call to PQsetdbLogin() in psql. Additionally use
PQconnectdbParams() for pg_dump and friends, and the bin/scripts
command line utilities such as vacuumdb, createdb, etc.

Finally, update the documentation for the new parameter, as well as the
nuances of precedence in cases where key words are repeated or duplicated
in the conninfo string.

Modified Files:
--------------
    pgsql/doc/src/sgml:
        libpq.sgml (r1.296 -> r1.297)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/libpq.sgml?r1=1.296&r2=1.297)
    pgsql/src/bin/pg_dump:
        pg_backup_db.c (r1.85 -> r1.86)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_backup_db.c?r1=1.85&r2=1.86)
        pg_dumpall.c (r1.131 -> r1.132)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_dumpall.c?r1=1.131&r2=1.132)
    pgsql/src/bin/psql:
        command.c (r1.213 -> r1.214)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/command.c?r1=1.213&r2=1.214)
        startup.c (r1.159 -> r1.160)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/startup.c?r1=1.159&r2=1.160)
    pgsql/src/bin/scripts:
        common.c (r1.38 -> r1.39)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/common.c?r1=1.38&r2=1.39)
    pgsql/src/interfaces/libpq:
        fe-connect.c (r1.385 -> r1.386)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-connect.c?r1=1.385&r2=1.386)
        libpq-fe.h (r1.150 -> r1.151)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/libpq-fe.h?r1=1.150&r2=1.151)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2010-02-05 03:20:56
Subject: pgsql: Rewrite rint() to enable removal of copyright mention; patch
Previous:From: Bruce MomjianDate: 2010-02-05 03:06:31
Subject: pgsql: Rewrite intagg/Makefile from scratch, to avoid copyright mention.

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