pg_connect -conninfo connectOptions pg_connect dbName [-host hostName] [-port portNumber] [-tty pqtty] [-options optionalBackendArgs]
A string of connection options, each written in the form keyword = value.
Specifies a valid database name.
Specifies the domain name of the backend server for dbName.
Specifies the IP port number of the backend server for dbName.
Specifies file or tty for optional debug output from backend.
Specifies options for the backend server for dbName.
If successful, a handle for a database connection is returned. Handles start with the prefix "pgsql".
pg_connect opens a connection to the Postgres backend.
Two syntaxes are available. In the older one, each possible option has a separate option switch in the pg_connect statement. In the newer form, a single option string is supplied that can contain multiple option values. See pg_conndefaults for info about the available options in the newer syntax.
XXX thomas 1997-12-24
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.