pg_connection_status( ) zwraca stan połączenia . Możliwe stany to PGSQL_CONNECTION_OK i PGSQL_CONNECTION_BAD .
Zobacz także pg_connection_busy( ) .