This page in other versions: 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

Submit correction

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.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group