MCPcopy Create free account
hub / github.com/apache/cloudberry / PQping

Function PQping

src/interfaces/libpq/fe-connect.c:797–807  ·  view source on GitHub ↗

* PQping * * check server status, accepting parameters identical to PQconnectdb */

Source from the content-addressed store, hash-verified

795 * check server status, accepting parameters identical to PQconnectdb
796 */
797PGPing
798PQping(const char *conninfo)
799{
800 PGconn *conn = PQconnectStart(conninfo);
801 PGPing ret;
802
803 ret = internal_ping(conn);
804 PQfinish(conn);
805
806 return ret;
807}
808
809/*
810 * PQconnectStartParams

Callers

nothing calls this directly

Calls 3

PQconnectStartFunction · 0.85
internal_pingFunction · 0.85
PQfinishFunction · 0.85

Tested by

no test coverage detected