"Darko Prenosil" <Darko(dot)Prenosil(at)finteh(dot)hr> writes:
> Does anyone know how to set the debug TTY in libpq client library ?
You can't anymore (it was deemed a security risk some time ago).
The backend ignores the tty argument now.
regards, tom lane