PQtrace Enable tracing of the frontend/backend communication to a debugging file stream.
PQtrace
void PQtrace(PGconn *conn FILE *debug_port)
PQuntrace Disable tracing started by PQtrace.
PQuntrace
void PQuntrace(PGconn *conn)