(PHP 4 >= 4.2.0)
pg_connection_status() 返回一个连接的状态。可能的状态为 PGSQL_CONNECTION_OK 和 PGSQL_CONNECTION_BAD。
参见 pg_connection_busy()。