(PHP 5 >= 5.6.0, PHP 7, PHP 8)
pg_connect_poll — 正在進(jìn)行嘗試輪詢(xún) PostgreSQL 鏈接狀態(tài)。
$connection = ?): int
pg_connect_poll() 輪詢(xún)使用 pg_connect() 創(chuàng )建的 PostgreSQL 鏈接狀態(tài),根據
PGSQL_CONNECT_ASYNC 選項
connectionPostgreSQL 數據庫鏈接資源
返回常量 PGSQL_POLLING_FAILED,
PGSQL_POLLING_READING,
PGSQL_POLLING_WRITING,
PGSQL_POLLING_OK, 或者
PGSQL_POLLING_ACTIVE.