(PHP 4 >= 4.2.0)
pg_connection_status() zwraca stan po│▒czenia. Mo┐liwe stany to PGSQL_CONNECTION_OK i PGSQL_CONNECTION_BAD.
Zobacz tak┐e pg_connection_busy().