PgDAC
Used to check state of connection to the server.
TCustomDAConnection
procedure Ping;
The method is used for checking server connection state.