diff --git a/src/test/examples/testlibpq.c b/src/test/examples/testlibpq.c index 4d9af82..2a2a612 100644 --- a/src/test/examples/testlibpq.c +++ b/src/test/examples/testlibpq.c @@ -40,6 +40,8 @@ main(int argc, char **argv) /* Make a connection to the database */ conn = PQconnectdb(conninfo); +foo: + /* Check to see that the backend connection was successfully made */ if (PQstatus(conn) != CONNECTION_OK) { @@ -114,6 +116,9 @@ main(int argc, char **argv) res = PQexec(conn, "END"); PQclear(res); + sleep(10); + goto foo; + /* close the connection to the database and cleanup */ PQfinish(conn);