cp_data_source *
cp_postgres_data_source(char *host,
int port,
char *login,
char *password,
char *db_name,
char *options,
char *sslmode,
char *krbsrvname,
char *service);
In addition to the basic connection parameters, the postgres driver recognizes the following parameters if inserted as keys on the prm table parameter to cp_dbms_get_data_source_prm(3):
options -- Command-line options to be sent to the server. sslmode -- determines whether or with what priority an SSL connection will be negotiated with the server. krbsrvname -- Kerberos service name to use when authenticating with Kerberos 5. service -- Service name to use for additional parameters.
For more on these options, see the postgres libpq documentation.
If cprops was configured to link cp_dbms drivers statically, the postgres driver need not be loaded dynamically and cp_postgres_data_source may be called directly to obtain connections.
This document was created by
man2html,
using the manual pages. Time: 22:48:28 GMT, April 10, 2006 |