pg_connect

Name

pg_connect -- バックエンドサーバとの接続を開きます。

Synopsis

pg_connect -conninfo connectOptions
pg_connect dbName [-host hostName]
  [-port portNumber] [-tty pqtty]
  [-options optionalBackendArgs]

入力(新しいスタイル)

connectOptions

A string of connection options, each written in the form keyword = value.

接続オプションを示す文字列。それぞれ、「キーワード = 値」という形 式で記述されます。

入力(古いスタイル)

dbName

Specifies a valid database name.

有効なデータベース名を指定します。

[-host hostName]

Specifies the domain name of the backend server for dbName.

dbName 用バックエンド サーバのドメイン名を指定します。

[-port portNumber]

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

dbName 用バックエンド サーバの IP ポート番号を指定します。

[-tty pqtty]

Specifies file or tty for optional debug output from backend.

オプションのバックエンドからのデバッグ情報を出力するファイルまたは tty を指定します。

[-options optionalBackendArgs]

Specifies options for the backend server for dbName.

dbName 用バックエンドサ ーバのオプションを指定します。

出力

dbHandle

If successful, a handle for a database connection is returned. Handles start with the prefix "pgsql".

成功すると、データベース接続用のハンドルを返します。ハンドル名 は "pgsql" という文字列から始まります。

**********************************************************

説明

pg_connect opens a connection to the Postgres backend.

pg_connect は、 Postgres バックエンドとの接続を開きます。

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.

2 つの構文が使用できます。古いスタイルでは、pg_connect 文で設定可能 なオプションそれぞれを分けた形でオプションスイッチを指定できます。新 しいスタイルでは、複数のオプション値を持った 1 つのオプション文字列 を指定できます。新しい方で設定可能なオプションについての情報は pg_conndefaults を参照して下さい。

使用方法

XXX thomas 1997-12-24