public inbox for [email protected]  
help / color / mirror / Atom feed
Tracing libpq client: Only with PQtrace()?
2+ messages / 2 participants
[nested] [flat]

* Tracing libpq client: Only with PQtrace()?
@ 2024-04-09 12:50  Sebastien Flaesch <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Sebastien Flaesch @ 2024-04-09 12:50 UTC (permalink / raw)
  To: pgsql-general <[email protected]>

Hello

Sorry if I missed that in the doc:

Is the PQtrace() API the only way to enable libpq client tracing?

I thought about some environment variable of client configuration setting...

Seb


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Tracing libpq client: Only with PQtrace()?
@ 2024-04-09 14:50  Greg Sabino Mullane <[email protected]>
  parent: Sebastien Flaesch <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Greg Sabino Mullane @ 2024-04-09 14:50 UTC (permalink / raw)
  To: Sebastien Flaesch <[email protected]>; +Cc: pgsql-general <[email protected]>

On Tue, Apr 9, 2024 at 8:51 AM Sebastien Flaesch <[email protected]>
wrote:

> Is the PQtrace() API the only way to enable libpq client tracing?
>
> I thought about some environment variable of client configuration
> setting...
>

That's generally the job of the client, or more specifically, the driver
providing the interface between your program and the libpq API. Unless you
are writing at the low level yourself, in which case, you would need to
have your program detect an env and call PQtrace() as needed.

See for example
https://metacpan.org/pod/DBD::Pg#parse_trace_flag-and-parse_trace_flags

Cheers,
Greg


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-04-09 14:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-04-09 12:50 Tracing libpq client: Only with PQtrace()? Sebastien Flaesch <[email protected]>
2024-04-09 14:50 ` Greg Sabino Mullane <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox