Thread: PGTTY?

PGTTY?

From
Peter Eisentraut
Date:
Is the so-called debug TTY functionality that you can set in libpq in
various ways still existing?  I can't seem to activate it and the code
doesn't show much reference to it.

-- 
Peter Eisentraut   peter_e@gmx.net



Re: PGTTY?

From
Tom Lane
Date:
Peter Eisentraut <peter_e@gmx.net> writes:
> Is the so-called debug TTY functionality that you can set in libpq in
> various ways still existing?  I can't seem to activate it and the code
> doesn't show much reference to it.

(a) I believe the TTY option is disabled in the normal postmaster
context, on the theory that it's a security hole.  The switch is
probably still accessible for a standalone backend.

(b) I'm not sure it does anything anymore anyway.  Didn't you rip out
the support for it in elog.c?  All it was was code to redirect stderr
during startup.
        regards, tom lane