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