pg_tty

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_tty --  Return the tty name associated with the connection

Description

string pg_tty (resource connection)

pg_tty() returns the tty name that server side debugging output is sent to on the given PostgreSQL connection resource.