Historical version. PostgreSQL 7.1 has reached end of support. See the current manual.
1.7. 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 by PQtrace
void PQuntrace(PGconn *conn)
Report a documentation issue
Read the upstream documentation. For corrections, first check the current manual.