void PQfinish(PGconn *conn);
#include <server/pgtime.h>
#include <libpq-fe.h>
#include <libpq/libpq-fs.h>
static PGconn *hConnexion;
...
hConnexion=PQsetdbLogin("aix", NULL, NULL, NULL, "postgresql_aix", "scott", "tiger");
...
if (PQstatus(hConnexion)!=CONNECTION_OK))
{
...
}
...
PQfinish(hConnexion);
...
if (PQstatus(hConnexion)!=CONNECTION_OK))
{
...
}
...