I noticed ecpglib still uses PQconnectdb() with a craftily assembledconnection string. Here is a patch to use PQconnectdbParams() instead.