安装/配置
PHP 手册

运行时配置

这些函数的行为受 php.ini 的影响。

PostgreSQL 配置选项
名称 默认值 可变范围 更新日志
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 从 PHP 4.2.0 起开始存在
pgsql.ignore_notice "0" PHP_INI_ALL 从 PHP 4.3.0 起开始存在
pgsql.log_notice "0" PHP_INI_ALL 从 PHP 4.3.0 起开始存在

有关 PHP_INI_* 常量进一步的细节与定义参见php.ini 配置选项

以下是配置选项的简要解释。

pgsql.allow_persistent boolean

是否允许持久的 Postgres 连接。

pgsql.max_persistent integer

每个进程所能有的持久 Postgres 连接数目。

每个进程所能有的 Postgres 连接数目,包括持久连接。

pgsql.auto_reset_persistent integer

检测用在 pg_pconnect() 上的中断了的持久连接。需要一些损耗。

pgsql.ignore_notice integer

是否忽略 PostgreSQL 后端的通告。

pgsql.log_notice integer

是否记录 PostgreSQL 后端的通告消息。要记录通告消息日志,PHP 指令 pgsql.ignore_notice 必须为 off。


安装/配置
PHP 手册