Unsupported versions: 6.3
pg_connect
PostgreSQL
Prev Next

pg_connect

Name

pg_connect — opens a connection to the backend server
pg_connect dbName -host hostName
  -port portNumber -tty pqtty -options optionalBackendArgs

Inputs

dbName

Specifies a valid database name.

-host hostName

Specifies the domain name of the backend server for dbName.

-port portNumber

Specifies the IP port number of the backend server for dbName.

-tty pqtty

(need information thomas 1997-12-24)

-options optionalBackendArgs

Specifies options for the backend server for dbName.

Outputs

dbHandle

The return result is either an error message or a handle for a database connection. Handles start with the prefix "pgp"

Description

pg_connect opens a connection to the Postgres backend.

Usage

XXX thomas 1997-12-24


Prev Home Next
Reference Information Up pg_disconnect