September 26, 2024: PostgreSQL 17 Released!
Unsupported versions: 6.5
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

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)