* PQping * * check server status, accepting parameters identical to PQconnectdb */
| 795 | * check server status, accepting parameters identical to PQconnectdb |
| 796 | */ |
| 797 | PGPing |
| 798 | PQping(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 |
nothing calls this directly
no test coverage detected