pgsql: Modify recently added PQconnectdbParams() with new argument, - Mailing list pgsql-committers

From joe@postgresql.org (Joe Conway)
Subject pgsql: Modify recently added PQconnectdbParams() with new argument,
Date
Msg-id 20100205030905.64B807541B9@cvs.postgresql.org
Whole thread Raw
List 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:

Previous
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Rewrite intagg/Makefile from scratch, to avoid copyright mention.
Next
From: momjian@postgresql.org (Bruce Momjian)
Date:
Subject: pgsql: Rewrite rint() to enable removal of copyright mention; patch