Re: psql connection timeout

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: psql connection timeout
Дата
Msg-id 20041203045316.GA33041@winnie.fuhr.org
обсуждение исходный текст
Ответ на psql connection timeout  (John DeSoi <desoi@pgedit.com>)
Ответы Re: psql connection timeout
Список pgsql-general
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/

В списке pgsql-general по дате отправления:

Предыдущее
От: "Gary Winslow"
Дата:
Сообщение: PostgresSQL Beta 5 Install Problem on Windows Server 2003
Следующее
От: Maksim Likharev
Дата:
Сообщение: Re: Get diagnistic (row_count) 7.3 vs. 7.4 changes