• Joe Conway's avatar
    Modify recently added PQconnectdbParams() with new argument, expand_dbname. · f419a82c
    Joe Conway authored
    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.
    f419a82c
pg_dumpall.c 48.9 KB