select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 6.3
Historical version. PostgreSQL 6.3 reached end of support in March 2003. See the current manual for supported releases.
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

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.