Re: Psql or test application hangs when interface is down for the DB server

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Psql or test application hangs when interface is down for the DB server
Дата
Msg-id 87prpemahr.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Psql or test application hangs when interface is down for the DB server  ("K, Niranjan (NSN - IN/Bangalore)" <niranjan.k@nsn.com>)
Ответы Re: Psql or test application hangs when interface is down for the DB server
Список pgsql-bugs
"K, Niranjan (NSN - IN/Bangalore)" <niranjan.k@nsn.com> writes:

> Is there any other workaround or alternative so that the situation about
> the interface is down is known and based on that the 'PQexec' does not
> get blocked for ~15 minutes.

Absent threads I think you have to use alarm() and a SIGALRM signal handler.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's Slony Replication support!

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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: BUG #4303: insufficient privileges
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Psql or test application hangs when interface is down for the DB server