PGconn *PQconnectdbParams(const char * const *keywords,
const char * const *values,
int expand_dbname);
PGconn *PQconnectdb(const char *conninfo);
PGconn *PQsetdbLogin(const char *pghost,
const char *pgport,
const char *pgoptions,
const char *pgtty,
const char *dbName,
const char *login,
const char *pwd);
PGconn *PQsetdb(char *pghost,
char *pgport,
char *pgoptions,
char *pgtty,
char *dbName);
PGconn *PQconnectStartParams(const char * const *keywords,
const char * const *values,
int expand_dbname);
PGconn *PQconnectStart(const char *conninfo);
PostgresPollingStatusType PQconnectPoll(PGconn *conn);
PQconninfoOption *PQconninfo(PGconn *conn);
PQconninfoOption *PQconninfoParse(const char *conninfo, char **errmsg);
postgresql://
postgresql://localhost
postgresql://localhost:5433
postgresql://localhost/mydb
postgresql://user@localhost
postgresql://user:secret@localhost
postgresql://other@localhost/otherdb?connect_timeout=10&application_name=myapp
postgresql://host1:123,host2:456/somedb?target_session_attrs=any&application_name=myapp
void PQfinish(PGconn *conn);
void PQreset(PGconn *conn);
int PQresetStart(PGconn *conn);
PostgresPollingStatusType PQresetPoll(PGconn *conn);
PGPing PQpingParams(const char * const *keywords,
const char * const *values,
int expand_dbname);
PGPing PQping(const char *conninfo);