Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Sql
Sql.pgsql

Method Sql.pgsql()->ping()


Method ping

int ping()

Description

Check whether the connection is alive.

Returns

Returns one of the following:

0

Everything ok.

1

The connection reconnected automatically.

-1

The server has gone away, and the connection is dead.


See also

is_open()