On Thu, Dec 02, 2004 at 11:32:34PM -0500, John DeSoi wrote:
> Is there a way to control how long psql waits for a connection? If the
> host IP address is mistyped, psql (8.0b4) hangs for over a minute on OS
> X.
Try setting the PGCONNECT_TIMEOUT environment variable:
env PGCONNECT_TIMEOUT=5 psql -h bogushost
If you always want to use a particular timeout then set the environment
variable in your shell's startup script.
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/