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