執行時期設定

這些函式的行為受 php.ini 的影響。

PostgreSQL configuration options
名字 預設 可修改範圍 更新日誌
pgsql.allow_persistent "1" PHP_INI_SYSTEM  
pgsql.max_persistent "-1" PHP_INI_SYSTEM  
pgsql.max_links "-1" PHP_INI_SYSTEM  
pgsql.auto_reset_persistent "0" PHP_INI_SYSTEM Available since PHP 4.2.0.
pgsql.ignore_notice "0" PHP_INI_ALL Available since PHP 4.3.0.
pgsql.log_notice "0" PHP_INI_ALL Available since PHP 4.3.0.
有關 PHP_INI_* 常數進一步的細節與定義參見Where a configuration setting may be set

以下是設定選項的簡要解釋。

pgsql.allow_persistent boolean

Whether to allow persistent Postgres connections.

pgsql.max_persistent integer

The maximum number of persistent Postgres connections per process.

The maximum number of Postgres connections per process, including persistent connections.

pgsql.auto_reset_persistent integer

Detect broken persistent links with pg_pconnect(). Needs a little overhead.

pgsql.ignore_notice integer

Whether or not to ignore PostgreSQL backend notices.

pgsql.log_notice integer

Whether or not to log PostgreSQL backends notice messages. The PHP directive pgsql.ignore_notice must be off in order to log notice messages.

add a note add a note

User Contributed Notes 1 note

up
-1
ewl at compressedtime dot com
10 years ago
Does "per process" mean the entire server process? or each process id (for forked processes)?
To Top