pg_connection_status

 int pg_connection_status ( resource $connection ) 

説明

pg_connection_status() returns the status of the specified connection.

戻り値

PGSQL_CONNECTION_OK or PGSQL_CONNECTION_BAD.